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

    Tobbe

    12/19/2021, 4:34 PM
    Hi. I'm trying to run this super simple sql statement
    UPDATE public."Category" SET name_en='Front fender' WHERE "name"='Framskärm'
    But I get "An error occurred with your deployment". What am I doing wrong?
  • t

    Tobbe

    12/19/2021, 4:47 PM
    I tried to manually update that value on a row using the web interface. Got this
  • t

    Tobbe

    12/19/2021, 4:53 PM
    Ran the sql statement again and looked at the logs. I get "canceling statement due to statement timeout"
  • l

    Ladvace

    12/19/2021, 5:49 PM
    Hi, I'm trying to use supabase for a discord login with the following function:
    Copy code
    js
    async function signInWithDiscord() {
      const { user, session, error } = await supabase.auth.signIn({
        provider: 'discord',
      })
    }
    the problem is that if you call this function when you click a button it's going to open the discord login page and then redirecting you back, but in this way you are never going to get `user `and
    session
    , is there anyway to retrive those data?
  • j

    jensen

    12/19/2021, 5:53 PM
    Hmm interesting, since the auth schema has a table called "users" not "profiles" and on that "users" table I don't know of an "inserted_at" key. If you made your own profiles table with an "inserted_at" this would make a bit more sense.
  • v

    Village

    12/19/2021, 5:56 PM
    Is there some way to restrict access to Supabase Studio?
  • v

    Village

    12/19/2021, 5:57 PM
    Because I'd like to use it for myself, but as far as I can tell it's publicly available to anyone on port 3000
  • j

    jensen

    12/19/2021, 6:01 PM
    I don't expose that port personally. I could probably IP restrict it but that would get annoying. You could put it behind basic http auth in nginx most likely. Manage the routing with nginx
  • v

    Village

    12/19/2021, 6:56 PM
    Alrighty, I’ll figure that out 🙂 thanks!
  • j

    jensen

    12/19/2021, 7:06 PM
    Ok. I just don’t know of a built in way. Supabase seems to gate using auth0
  • b

    bh

    12/19/2021, 9:10 PM
    I noticed today my instance is running on postgresql 12.6, which was released in Feb 2021 and has 6 known security vulnerabilities listed: https://www.postgresql.org/support/security/
  • b

    bh

    12/19/2021, 9:11 PM
    what postgresql version are your supabase cloud instances running?
  • b

    bh

    12/19/2021, 9:11 PM
    postgresql recommends all users run the latest point release, which is 12.9 for the 12 version series
  • a

    anothercoder

    12/20/2021, 2:44 AM
    I think you have to migrate old projects manually https://supabase.com/docs/guides/database
  • a

    anothercoder

    12/20/2021, 2:47 AM
    I think the studio runs on "localhost", so it can only be accessed by the user.
  • v

    Village

    12/20/2021, 2:48 AM
    It doesn't run on localhost, it binds like everything else
  • v

    Village

    12/20/2021, 2:48 AM
    If you open the port then anyone can connect, I've gotten it behind a nginx password thing so I'm super happy 🙂
  • a

    anothercoder

    12/20/2021, 2:49 AM
    ic, I thought it shld bind only to localhost 🙂
  • v

    Village

    12/20/2021, 2:49 AM
    No worries 🙂
  • a

    anothercoder

    12/20/2021, 2:51 AM
    Cloud project dashboard - Settings > API > JWT Secret
  • t

    thyme

    12/20/2021, 3:21 AM
    This only shows me the option to reveal the token. Do you have one to change it?
  • w

    Walt

    12/20/2021, 5:16 AM
    Supabase control panel is down? Trying to log in, it does oauth, then, comes back to "Sign in With Github". If I click again, it loops again (ad infinitum). Cleared cookies. Tried a different browser. Same.
  • w

    Walt

    12/20/2021, 5:17 AM
    Unable to proceed past here, yet, it was working earlier today... Please advise, over.
  • k

    krithika

    12/20/2021, 5:18 AM
    ^ i'm running into the same issue
  • w

    Walt

    12/20/2021, 5:18 AM
    Well good to know it's not just me, bummerz for team Supabase…
  • k

    krithika

    12/20/2021, 5:18 AM
    specifically, I'm getting "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://o398706.ingest.sentry.io/api/5459134/envelope/?sentry_key=caa7db5fc1da4341810a6d56251a951c&sentry_version=7. (Reason: CORS request did not succeed). Status code: (null)."
  • k

    krithika

    12/20/2021, 5:18 AM
    on both firefox and chromium
  • k

    krithika

    12/20/2021, 5:19 AM
    (today's my first day trying supabase, so i thought I'd really messed up somehow)
  • w

    Walt

    12/20/2021, 5:19 AM
    I'm not seeing that in Safari, just a "Failed to load resource yada yada 500"
  • w

    Walt

    12/20/2021, 5:19 AM
    It's been working great for me... until tonight. Hopefully will be fixed soon.
1...164165166...316Latest