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

    Eagle

    09/08/2021, 1:03 AM
    Hi there, having some issues inserting a javascript object into a supabase JSON field. The error is "See the value of key 'FIELD_NAME'" when trying to insert the object {test:'a test'}, message: 'expected JSON array' and code: '22P02'. I've tried finding answers but no success. Stringifying the object first didnt help either.
  • j

    jon.m

    09/08/2021, 1:12 AM
    my issue is definitly related to RLS
  • s

    Scott P

    09/08/2021, 2:59 AM
    Valid json uses double quote (
    "
    ) to surround keys and values, not single quote (
    '
    )
  • z

    zeshhaan

    09/08/2021, 3:00 AM
    Gotcha moment -> i have enabled RLS, disabled it and it works
  • e

    Eagle

    09/08/2021, 4:59 AM
    Thanks for the idea. I am creating the object with javascript though, single or double quotes will not matter if passing an object into .upsert() right?
  • j

    jason-lynx

    09/08/2021, 5:50 AM
    if it's a JSON column, you might have to surround the whole thing with quotes:
    .upsert({boplats_data: '{"test": "a test"}'})
  • j

    jonny

    09/08/2021, 8:35 AM
    oh yea, that makes sense!
  • l

    LuddensEkko

    09/08/2021, 11:00 AM
    Hi, say that i have a "School" and "Student" objects , the "Student" has a "school_id" reference , now when l query a student, how can l get the School object (instead of only the school_id) in the json response like this:
    s
    • 2
    • 3
  • l

    LuddensEkko

    09/08/2021, 11:00 AM
    or should l just get the student --> retrieve the school_id from it --> then query the corresponding school seperatly?
  • j

    JW

    09/08/2021, 11:07 AM
    https://supabase.io/docs/reference/javascript/select#query-foreign-tables
  • s

    silentworks

    09/08/2021, 11:48 AM
    Getting related record with Supabase
  • a

    ankitjey

    09/08/2021, 11:59 AM
    How to I order by random using the supabase client?
    m
    • 2
    • 4
  • p

    Poypoypoy

    09/08/2021, 12:01 PM
    i wait more than 3-5 mins to receive the email confirmation, how can i make it less than 1 minute
  • j

    jbergius

    09/08/2021, 12:05 PM
    Is it possible to redirect users that sign's up to a specific route? For clarification: I don't want to have the same redirect URL after signup as I have after signin
  • s

    silentworks

    09/08/2021, 12:12 PM
    The signIn and signUp functions in the supabase-js client takes an additional parameter where you can state the redirectTo. You can see an example here https://github.com/supabase/supabase/discussions/2760#discussioncomment-1144158
    j
    • 2
    • 8
  • m

    mendesrenan5

    09/08/2021, 1:09 PM
    Anyone having problems with login?
  • m

    mendesrenan5

    09/08/2021, 1:10 PM
    I mean the login at the website itself app.supabase.io It logged me out (my sessions was expired) 2 times in a row Then I started using it on a private window It just did it for the third time 🥲
  • m

    mendesrenan5

    09/08/2021, 1:12 PM
    An error has occured: 401
  • m

    mendesrenan5

    09/08/2021, 1:13 PM
    Ok it happened the fourth time. I'll try to change the browser, I'm using Brave Browser
  • e

    Eagle

    09/08/2021, 1:33 PM
    Wouldn't that be what JSON.stringify does? Didn't help unfortunately 😦 Edit: Nice I got it working! I was using the wrong column type in the database- it's a bit confusing. I was using varchar[] (array) instead of JSONB column type.
  • m

    mendesrenan5

    09/08/2021, 1:39 PM
    I got logged out automaticaly for the #5 time. Now on firefox...
  • m

    mendesrenan5

    09/08/2021, 2:21 PM
    6th time 🥲 my session was timed out again. Any tips on this? I've already changed the browser and I'm using incognito mode Browsers: Firefox v91.01.04 Brave v1.29.77
  • u

    user

    09/08/2021, 2:45 PM
    Hi. The signup confirmation emails aren't being delivered. Is there someway I can check what is going on? The status page shows everything as operational.
  • u

    user

    09/08/2021, 2:45 PM
    I'm not sure if I should open a github bug report for this.
  • v

    Village

    09/08/2021, 4:45 PM
    Are there any features missed by self-hosting a project besides the awesome web dashboard?
  • t

    test12

    09/08/2021, 6:56 PM
    how to all delete data ? all database reset
  • d

    davlaha

    09/08/2021, 8:53 PM
    is there a way to force delete all triggers? I keep getting an error everytime I delete
  • d

    davlaha

    09/08/2021, 9:19 PM
    solved.
  • k

    Kylar

    09/08/2021, 9:40 PM
    Could someone help with this issue? https://discord.com/channels/839993398554656828/869406062036529193/885270868849201152
  • j

    jason-lynx

    09/09/2021, 1:46 AM
    pls copy what i put as the value for boplats_data - yours is slightly different edit: just saw your column type update! 👍
1...798081...316Latest