https://supabase.com/ logo
Join Discord
Powered by
# help
  • b

    boeledi

    08/10/2022, 1:02 PM
    Hi, I am experiencing errors when I try to deploy an Edge Function
    Copy code
    supabase functions deploy hello-world
    Bundling hello-world
    Error: Failed to create a new Function on the Supabase project: {"id":"fe576b3d-3592-4efd-abe7-fbdde8c46a95","slug":"hello-world","name":"hello-world","version":1,"status":"ACTIVE","created_at":1660136284125,"updated_at":1660136284125,"verify_jwt":true}
    When I have a look at the Dashboard, the Function is there but when I try to invoke it I receive
    Copy code
    502: Bad Gateway (DEPLOYMENT_FAILED)
    
    The deployment failed while serving the request.
    Would you have an idea what I am doing wrong? Thanks
    n
    s
    g
    • 4
    • 4
  • s

    sidharth28

    08/10/2022, 1:02 PM
    Hi I want to view metrics and log of my platform , like given in this URL : https://supabase.com/docs/guides/platform/metrics gettind error: zsh: no such file or directory: https://.supabase.co/customer/v1/privileged/metrics
    n
    • 2
    • 2
  • s

    sidharth28

    08/10/2022, 1:07 PM
    Hi I want to view metrics and log of my platform , like given in this URL : https://supabase.com/docs/guides/platform/metrics gettind error: zsh: no such file or directory: https://.supabase.co/customer/v1/privileged/metrics
    n
    • 2
    • 1
  • p

    paddyfink | Pesabooks

    08/10/2022, 1:43 PM
    Hello, come here to report the same issue with my edge function:
    Copy code
    502: Bad Gateway (DEPLOYMENT_FAILED)
    The deployment failed while serving the request.
    n
    s
    +3
    • 6
    • 8
  • d

    drewbie

    08/10/2022, 1:50 PM
    Is it possible to view the Postgres Logs view in the UI using local dev / Supabase Studio?
    n
    s
    • 3
    • 2
  • p

    pocin

    08/10/2022, 3:01 PM
    Anyone have a tested solution for managing images and different resolutions in storage? I.e. i have a user uploaded image. I want to have different resolutions available for download. Should I process the images asynchronously on a server and store them in different folder in storage, ie. image
    1234-5678.png
    would be in
    Copy code
    public/raw/1234-5678.png
    public/32x32/1234-5678.png
    public/256x256/1234-5678.png
    etc? This requires managing some extra infra, which i'd like to avoid. The only alternative I can think of would be using edge functions to manage the image uploads and process the different resolutions on upload. I dont think it's good idea to do this in triggers even if i managed to write this code using pl/python procedure, right?
    n
    n
    • 3
    • 5
  • k

    knoppoly

    08/10/2022, 3:13 PM
    Anyone know how to do an order by on an embedded (joined) field using RESTful api? I'm using Appsmith so I can't import the Supabase client library
    n
    s
    • 3
    • 9
  • k

    Kellen Mace

    08/10/2022, 3:34 PM
    Does anybody know how I can stop Supabase from sending all emails? I have migrated my production DB over to another Supabase project that I plan to use as a staging environment. I want to ensure no emails are sent from staging, even if someone were to accidentally click "Sending password recovery" or "Send magic link" in the Supabase admin, for example.
    n
    • 2
    • 2
  • j

    Josué Ayala

    08/10/2022, 3:44 PM
    I'm happy to launch my new blog 🚀😜, I will write about programming and other interesting things in the tech world. Here is my first post 🔖, any comments let me know. https://josueayala.me/blog/using-lottie-files-with-nuxtjs
    n
    o
    • 3
    • 2
  • z

    zeedee

    08/10/2022, 3:48 PM
    Question.. I'm looking into Supabase for an internal tooling project with a small company, we can't immediately afford the hosting cost of $25/month Does the free tier's weekly timeout automatically start back up when you query the project?
    n
    o
    m
    • 4
    • 8
  • h

    HEAVYPOLY

    08/10/2022, 3:50 PM
    Does anyone know if supabase is blocked in China? I've heard firebase is blocked and wondering if supabase is in the same situation
    n
    o
    • 3
    • 3
  • k

    KickNext

    08/10/2022, 4:14 PM
    CRITICAL! )) EDGE Functions down: unable to connect to isolate, terminated
    n
    t
    g
    • 4
    • 7
  • k

    Kariak

    08/10/2022, 5:11 PM
    I'm having trouble importing a CSV that has json in one of the columns. The json in the column looks like this:
    Copy code
    {
      "StadiumID": 46,
      "Name": "Tom Benson Hall of Fame Stadium",
      "City": "Canton",
      "State": "OH",
      "Country": "USA",
      "Capacity": 23000,
      "PlayingSurface": "Artificial",
      "GeoLat": 40.819906,
      "GeoLong": -81.398157,
      "Type": "Outdoor"
    }
    After I import the CSV it looks like this in the column:
    Copy code
    "{\"StadiumID\": 46, \"Name\": \"Tom Benson Hall of Fame Stadium\", \"City\": \"Canton\", \"State\": \"OH\", \"Country\": \"USA\", \"Capacity\": 23000, \"PlayingSurface\": \"Artificial\", \"GeoLat\": 40.819906, \"GeoLong\": -81.398157, \"Type\": \"Outdoor\"}"
    I'm unable to use the data in that column when it's formatted this way.
    n
    e
    • 3
    • 13
  • f

    fernandops26

    08/10/2022, 6:48 PM
    Hi guys 👋. I am using nextjs with supabase to an web app, that works fine with her own login/signup. Also, I have a vscode extension, I would like login here too. I was thinking of some way to open an OAuth login from here in a new window (email+password, or github) and after login call to a local server created by the extension, exactly like following example with passport. Here, the server side, when finishing the login, then redirect to the local server created by the extension and provide the access token on the response:
    Copy code
    app.get(
        "/auth/github/callback",
        passport.authenticate("github", { session: false }),
        (req: any, res) => {
          res.redirect(`http://localhost:54321/auth/${req.user.accessToken}`);
        }
      );
    Here, extension side, command to call to the main server and get access token, after that, they use it to access to every protected route
    Copy code
    const app = polka();
    
      app.get(`/auth/:token`, async (req, res) => {
        const { token } = req.params;
        if (!token) {
          res.end(`<h1>something went wrong</h1>`);
          return;
        }
    
        await TokenManager.setToken(token);
        fn();
    
        res.end(`<h1>auth was successful, you can close this now</h1>`);
    
        (app as any).server.close();
      });
    
      app.listen(54321, (err: Error) => {
        if (err) {
          vscode.window.showErrorMessage(err.message);
        } else {
          vscode.commands.executeCommand(
            "vscode.open",
            vscode.Uri.parse(`${apiBaseUrl}/auth/github`)
          );
        }
      });
    But I am a little confused about how I should abort it using supabase. 😕
    n
    • 2
    • 1
  • t

    TARS

    08/10/2022, 8:03 PM
    Hello friends, another newb question incoming. I'm building an admin app and I use next.js with supabase. Right now I'm trying to build a filter component for the first time.
    Copy code
    const fetchHosts = async () => {
        setLoading(true);
        let { data: hosts, error } = await supabase
          .from('hosts')
          .select('*')
          .eq('status', selectedValues.name);
    
        if (hosts) {
          console.log(selectedValues);
          setHosts(hosts);
          setLoading(false);
        }
      };
    
      useEffect(() => {
        fetchHosts();
      }, [selectedValues]);
    So it's working when I wanna fetch data with special statuses, but now I also have a selection that is 'all objects', how will I do this? And also in the future I might wanna put in even more filters. Like status unhandeled in a special city etc. Can I still use the supabase cli for this? And if yes, can someone give me a hint on how to start thinking about this.
    n
    g
    • 3
    • 51
  • b

    bhaskar

    08/10/2022, 9:16 PM
    hi, I am connecting to supabase from node background service using anon key and set the token as well
    supabase.auth.setAuth(token)
    . How do i get the user id of the admin ?
    n
    o
    g
    • 4
    • 6
  • v

    voth

    08/11/2022, 2:18 AM
    Hi, I'm trying out local development using the CLI and the guide (https://supabase.com/docs/guides/local-development#database-migrations) says to use the command
    supabase db commit create_employees
    to create a new migration. This
    commit
    command isn't available on the version of the CLI I'm using (0.37.1). Has anyone else encountered this? how did you resolve it?
    n
    s
    • 3
    • 4
  • h

    hartem

    08/11/2022, 3:10 AM
    Hey folks, I have a question about pricing for Enterprise plan. Who would be the right person to talk to?
    n
    s
    r
    • 4
    • 3
  • n

    NanoBit

    08/11/2022, 7:56 AM
    Looking at the Pro plan, there is Email support. May I ask if there is a normal timeframe that support will reply by (1-3d or more?) or should I consider contacting for Email Support addon?
    n
    • 2
    • 1
  • 🆕 Albert [toxcis] (2022-08-11)
    n

    Needle

    08/11/2022, 8:44 AM
    Hello @Deleted User! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
  • w

    wiesson

    08/11/2022, 9:22 AM
    I'm trying to add
    my-random-previewfeature-my-app.vercel.app
    to the whitelisted domains so that I can login with google to my preview features. Does anyone know how it works? It used to be like that the redirect URL needs matched exactly? Also my supabase UI looks different as shown here -> https://mobile.twitter.com/supabase/status/1539561445414805506
    n
    s
    • 3
    • 4
  • h

    hanako

    08/11/2022, 9:52 AM
    hello, I'm trying to setup supabase auth with trpc on nextjs and getting this error
    n
    s
    • 3
    • 6
  • f

    felixthehat

    08/11/2022, 10:22 AM
    hi! I'd like to reset my ID column before i go live to remove all the gaps from editing, is there a way to do this through the UI
    n
    s
    • 3
    • 9
  • t

    Twisted Chaz

    08/11/2022, 10:24 AM
    Is it possible to write resolvers for the GraphQL API, I have dates that in the DB as ISO strings, but would like them to be parsed by date-fns so I don't need to do it whenever I reference that col
    n
    • 2
    • 1
  • t

    TheOnlyTails

    08/11/2022, 11:18 AM
    how do I add permission scopes to my discord auth callback?
    n
    • 2
    • 3
  • d

    DesertRodent

    08/11/2022, 12:36 PM
    Is anyone experiencing major slowdown on the JS API?
    n
    g
    • 3
    • 29
  • 🆕 garyaustin (2022-08-11)
    n

    Needle

    08/11/2022, 1:02 PM
    Hello @garyaustin! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
  • 🆕 garyaustin (2022-08-11)
    n

    Needle

    08/11/2022, 1:02 PM
    Hello @garyaustin! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
  • o

    Olyno

    08/11/2022, 1:14 PM
    ============================= Channel locked. Please ask in #1006358244786196510. =============================
  • yo
    s

    SC

    09/08/2023, 11:07 PM
    test
    • 1
    • 1