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

    Voko2255

    05/01/2022, 1:38 AM
    hello what this error means Error: [500] getaddrinfo ENOTFOUND db and how can i solve it
    n
    g
    • 3
    • 7
  • b

    Bryan K.

    05/01/2022, 7:25 AM
    500 Error when calling
    inviteUserByEmail(email, redirectURL)
    n
    • 2
    • 5
  • s

    sbr

    05/01/2022, 11:51 AM
    Hi, does the refresh token work correctly for anyone? I'm running into this error https://github.com/supabase/supabase-js/issues/254#issuecomment-1090917141 whereby the refresh token is revoked immediately when it tries to refresh. (using supabase-auth-helpers)
    n
    g
    a
    • 4
    • 12
  • f

    Fehmi

    05/01/2022, 12:10 PM
    Hi. Can Supabase be used with Node.js, i.e. server side? I would like to secure my back-end API with supabse auth but could not get it working (probably my lack of JS skills). However, I also found supabase documentations a bit lagging
    n
    v
    • 3
    • 3
  • y

    yxsh

    05/01/2022, 12:23 PM
    I want to get the user on page load i am doing
    Copy code
    ts
    useEffect(() => {
       const user = supabase.auth.user();
    },[])
    but it returns null even tho their is a user logged in i have to use
    setTimeout()
    and sometimes that doesn't work too
    n
    g
    • 3
    • 6
  • f

    Fehmi

    05/01/2022, 12:52 PM
    I have had a little bit of progress from the post here https://github.com/supabase/supabase/issues/491#issuecomment-871863896 However, for my code below,
    Copy code
    js
    const { createClient } = require('@supabase/supabase-js');
    
    const access_token = "....." // I got this from my working React front end and validated the token from jwt.io, which can decode the token
    const supabaseUrl = "https://......supabase.co"
    const public_anon_key = "......"
    const supabase = createClient(supabaseUrl,public_anon_key)
    
    async function validateUser() {
            let {user, data, error} = await supabase.auth.api.getUser(access_token)
            console.log( {user, data, error})
    }
    validateUser()
    I get
    Copy code
    {
      user: null,
      data: null,
      error: { message: 'Invalid token: signature is invalid', status: 401 }
    }
    n
    g
    • 3
    • 3
  • j

    Januário

    05/01/2022, 2:20 PM
    Is it legal, allowed, and plausible to use supabase for web3 projects? The little I've seen make this look like you need an email, that you can't auth users with e.g. custom usernames instead of emails, and that there are a lot of functions that are available to the client like reset passwords that well, are created having the existence of an email in mind I guess, a web3 project would require the ability to issue custom tokens based on a parameter that's not an email (e.g. wallet)
    n
    g
    • 3
    • 3
  • u

    4Omin

    05/01/2022, 2:46 PM
    how can I save / restore a superbase to a git repo (mainly the table structure)?
    n
    t
    • 3
    • 7
  • p

    Prodigy7kX

    05/01/2022, 4:51 PM
    Hey all, i have a select statement that looks like this:
    Copy code
    js
    .select(
      `
      *,
      members:teams_members(*)
    `
    )
    This will give something like this:
    Copy code
    json
    [{
      ...
      members: {...} 
    }]
    My question is: Is there a way to just "spread" the
    members
    object inside its parent via the select statement?
    n
    s
    • 3
    • 6
  • t

    TJ

    05/01/2022, 5:21 PM
    Anyone know how I can route a user to a specific page upon login? Using Supabase, and I can route to the homepage when they logout. But if I use the same login for logging in, in loads the routed page, without the user being logged in.
    n
    g
    • 3
    • 11
  • t

    Trey

    05/01/2022, 7:49 PM
    Any ideas why when I use the
    useUser
    hook in my Next.js app, it just spams the hell out of these endpoints? I'm logged in and have valid data coming from that hook, it just seems to be constantly revalidating
    n
    g
    • 3
    • 7
  • k

    kavla

    05/01/2022, 8:17 PM
    I'm Seeing a CORS error when trying to access the Dashboard and a 525 SSL handshake error on app logins, is there an issue at the moment?
    n
    • 2
    • 6
  • j

    joa

    05/01/2022, 8:22 PM
    Need some help with triggers (and functions) in Supabase. I created a small table, with a
    last_active timestamptz
    column, and the thought was to have a trigger set the field to
    now()
    on every INSERT and UPDATE. So, I created a function for this (which returns a trigger) and then set that as a trigger "on" the table. However, I can't see that anything is happening
    n
    g
    • 3
    • 31
  • o

    oystermaker

    05/01/2022, 8:28 PM
    Hey all! I'm building a relatively simple edge function that literally just takes a request body, validates it, and saves it in the db. and for some reason I can't figure out why but I keep getting a 502 response from this endpoint. Here's a codepen with the code for my edge function: https://codesandbox.io/s/strange-wilson-ylnfpp?file=/src/functions/create-event/index.ts I copied and pasted the example found here: https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/select-from-table-with-auth-rls/index.ts and that function is working fine. But for some reason my function is returning the following error:
    Copy code
    502: Bad Gateway (ORIGIN_BOOT_RPC_ERROR)
    
    The subhoster origin returned a failure status for the boot RPC call. Status: 500 Internal Server Error
    any help would be appreciated 🙂
    n
    g
    • 3
    • 13
  • n

    Needle

    05/01/2022, 8:40 PM
    Hello @Lars! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! 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.
    l
    • 2
    • 3
  • c

    cainus

    05/02/2022, 12:14 AM
    hey all... is there any way for me to do local frontend dev against the remote/prod environment?
    n
    • 2
    • 1
  • s

    ShaneTheKing

    05/02/2022, 2:18 AM
    Hey guys, we just deployed an app and a lot of our users are experiencing issues where their tokens aren't being refreshed correctly, being timed out while actively using the app and they start receiving 401s until they refresh and log in again. Has anyone experienced anything like this?
    n
    g
    • 3
    • 11
  • k

    Kadnium

    05/02/2022, 9:56 AM
    Does anybody here know solution to this? I have this exact same problem and nobody has answered to this on stackoverflow. https://stackoverflow.com/questions/70699495/supabase-filter-data-with-join-and-logical-or
    n
    s
    +2
    • 5
    • 11
  • t

    torkleyy

    05/02/2022, 10:38 AM
    I'm getting an error running the
    hello-world
    (autogenerated) function using curl:
    Copy code
    The subhoster origin specified an invalid `x-deno-config` header on the boot RPC response: invalid unicode code point at line 1 column 754.
    I literally just did
    supabase functions new hello-world
    and
    supabase functions deploy hello-world
    , then ran the curl command shown on the dashboard.
    n
    s
    • 3
    • 6
  • a

    aaaaeeee

    05/02/2022, 11:04 AM
    I set up nextjs, prisma and supabase. when you start local project connection to database works nicely. When I deploy it to Netlify the connection does not work , I have added DATABASE_URL to enviroment Should there be something else that I should be aware of?
    n
    s
    • 3
    • 8
  • s

    STILLWATER;

    05/02/2022, 11:12 AM
    hey i need someone who can help me understand GIN using trigram and implementation
    n
    g
    • 3
    • 6
  • m

    Martin Kmieciak

    05/02/2022, 11:57 AM
    Hey! Does anyone know if supabase self-hosted can be horizontally scaled on k8s? Does anyone test supabase with CockroachDB, YugabyteDB or Citus?
    n
    • 2
    • 1
  • s

    Studywithdesign

    05/02/2022, 1:42 PM
    can you please send error when user try to signup even if it's signedup already. In my case, it doesn't send any error but send a userdetails in my console
    n
    g
    • 3
    • 5
  • s

    Studywithdesign

    05/02/2022, 2:04 PM
    how to write supabase function for trigger: when user joins make one row in authors table and when user's details update, update authors table and when user deletes, delete user
    n
    g
    • 3
    • 5
  • v

    VuNguyen

    05/02/2022, 2:29 PM
    Add a property to existing json
    g
    • 2
    • 5
  • g

    Gabriel_

    05/02/2022, 2:58 PM
    Hey! Is it possible to expose your Supabase instance over HTTPS on a domain when using
    supabase/cli
    ?
    n
    o
    • 3
    • 5
  • s

    ShaneTheKing

    05/02/2022, 3:23 PM
    Has anyone ever dealt with an issue where multiple tabs of the app open can cause token refreshing to start failing because all of the tabs try to refresh the token at the same time and you can end up with the wrong refresh token stored as a result? Any ideas on how to deal with this?
    n
    g
    • 3
    • 8
  • j

    Justin | PocketUniverse

    05/02/2022, 3:47 PM
    Hey y'all, I just launched my supabase app and I'm getting a ton of authentication requests (like one a second) from various countries. The rate limit is kicking in which is great but this prevents normal users from logging in. What is the bot/rate limiting policy? Any tips on how to fix this?
    n
    g
    • 3
    • 10
  • n

    Needle

    05/02/2022, 4:05 PM
    Hello @Derek! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User role 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.
    • 1
    • 2
  • m

    monsto

    05/02/2022, 6:17 PM
    Hello 👋 I'm building an RPC and accessing it from a JS (SvelteKit). I'm trying to build the call from JS, but am getting errors and am unsure what exactly is causing it.
    n
    g
    • 3
    • 84
1...265266267...316Latest