https://supabase.com/ logo
Join DiscordCommunities
Powered by
# help
  • s

    silentworks

    02/21/2022, 9:27 AM
    Support email
  • m

    MrSmiley

    02/21/2022, 9:53 AM
    Hey! Does realtime support replaying events in case of reconnection? I Have a background process that updates large amounts of data in database, and a realtime listener which listens to changes, and propagates them to a secondary storage. However, I found that if my listener (not the supabase/realtime process, but a client using RealtimeClient JS api) crashes and is restarted, it misses all updates that occured when it wasn't running. Ideally, i'd like to maintain some position of the client in the realtime server, and ack each message, and maintain a window of messages in case a client reconnects and wants to replay the messages since its last position. I could even handle all the position logic on the client, as long as I could pass a timestamp, id, or whathever of the last seen data, and start replaying events since then. I used to work with CDC pipelines, and they were pretty heavy, used Kafka, etc. I'm trying to avoid all that complexity since I don't need scale, just a resilient way to get access to a log of database events.
  • c

    connection01

    02/21/2022, 12:12 PM
    Edit: Solved, I just have to pass str datetime. I am using supabase python client, how to manage datetime field? Passing datetime object to supabase.table().insert({"timestamp": datetimeObject }) returns following error:
    Copy code
    TypeError: Object of type datetime is not JSON serializable
  • z

    zoocityboy

    02/21/2022, 12:49 PM
    unfortunately the same for me. a few days ago a PR was published with a fix, but still not reviewed. https://github.com/supabase/postgres/pull/147
  • a

    Albert [tox/cis]

    02/21/2022, 1:02 PM
    Can someone help me with querying the database? I have something weird going on and I don't know why
  • a

    Albert [tox/cis]

    02/21/2022, 1:02 PM
    I have asked this question on Stackoverflow as well but I've received no answers
  • a

    Albert [tox/cis]

    02/21/2022, 1:02 PM
    https://stackoverflow.com/questions/71197524/nested-query-in-postgrest-supabase-denies-existence-of-relationship-between-tw
  • a

    Albert [tox/cis]

    02/21/2022, 1:04 PM
    A nested query (a nested join in this case) refuses to give me the data because there are no relationships found, it says
  • v

    vanderrlay

    02/21/2022, 1:19 PM
    Is it possible to use RLS without using the supabase client?
    g
    • 2
    • 1
  • a

    Albert [tox/cis]

    02/21/2022, 2:03 PM
    RLS is on the server-side. Or what are you asking exactly?
  • v

    vanderrlay

    02/21/2022, 2:06 PM
    I want to make use of supabases helper functions like auth.uid() but without using supabases auth.
  • a

    Albert [tox/cis]

    02/21/2022, 2:06 PM
    I've only just started using Supabase so I'm not that familiar with its components. But isn't auth.uid() an integral part of the authentication with supabase?
  • v

    vanderrlay

    02/21/2022, 2:08 PM
    yeh it is but im not sure if i could customize it to use my current auth setup which is with firebase.
  • a

    Albert [tox/cis]

    02/21/2022, 2:09 PM
    Aha, I have some similar problems. I haven't really worked on it yet but only theorised about combining both services
  • a

    Albert [tox/cis]

    02/21/2022, 2:10 PM
    You could save the uid from Supabase with a
    SupabaseUids
    collection on Firebase and similarly you could store the uid from Firebase inside a
    FirebaseUids
    table?
  • v

    Village

    02/21/2022, 2:55 PM
    I managed to fix it, most of the container got arm builds from Supabase recently so that fixed most of it, but Postgres didn’t and was configured to only build for ARM, I just built that myself and everything worked like a charm!
  • g

    garyaustin

    02/21/2022, 3:06 PM
    RLS without supabase.js
  • b

    baddoh99

    02/21/2022, 3:15 PM
    is it possible to use other columns from auth.user to create policies, just like how we use the default helper functions like auth.uid()|role() ?
  • b

    baddoh99

    02/21/2022, 3:15 PM
    for instance if i want to use the raw_user_metadata column when creating a policy, will this be possible?
  • n

    Net

    02/21/2022, 4:27 PM
    I want to allow only whitelisted users to sign up with an email and password, what's the best way to do this?
  • a

    Albert [tox/cis]

    02/21/2022, 4:33 PM
    that's oddly contradicting, isn't it?
  • n

    Net

    02/21/2022, 4:34 PM
    Ah I mean that I want my email auth to be "invite only"
    s
    a
    • 3
    • 11
  • n

    Net

    02/21/2022, 4:35 PM
    users will still need to create their password before using their account of course
  • c

    connection01

    02/21/2022, 5:47 PM
    Can I use backblaze storage along with hosted version of supabase
    s
    a
    f
    • 4
    • 4
  • a

    and3rsonsousa

    02/21/2022, 6:05 PM
    Anyone has an idea on how to make this?
    e
    • 2
    • 8
  • s

    silentworks

    02/21/2022, 6:12 PM
    Storage providers
  • e

    Erwin

    02/21/2022, 7:06 PM
    Querying multiple or nested objects
  • s

    snackbar

    02/21/2022, 7:59 PM
    I'm getting an error when running supabase via docker on a new Ubuntu 20 server.
    Copy code
    supabase-rest | 21/Feb/2022:19:50:29 +0000: {"details":"could not translate host name \"l@db\" to address: Name does not resolve\n","code":"","message":"Database connection error. Retrying the connection."}
  • n

    Net

    02/21/2022, 8:07 PM
    I have "enable email confirmations" disabled, and yet I still get a 400 Email not confirmed error when trying to sign in with an unconfirmed email
  • k

    kvnam

    02/21/2022, 10:34 PM
    Hey, I'm trying to set up Supabase auth with Prisma. I've seen some threads in the channel for this, but none have any concrete replies. In addition I found a few threads on Prisma's repo with links on how this may be achieved, for example - https://github.com/prisma/prisma/issues/5128. I tried this out,
    set
    a custom variable
    app.current_user_role
    on a table which will allow Select only if
    app.current_user_role
    is
    admin
    But when I run this via Prisma, it returns all the rows, irrespective of this value. I wanted to know if this is a good idea at all, or if getting Prisma to work with Supabase auth is still tricky and best not attempted right now? Any pointers in the right direction would be great, thanks!
    • 1
    • 3
1...226227228...316Latest