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

    Needle

    03/19/2022, 8:21 PM
    Hello @fgiordanelli! 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.
  • n

    Needle

    03/19/2022, 8:21 PM
    Hello @fgiordanelli! 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.
  • t

    theuknowner

    03/19/2022, 9:07 PM
    Hello, how can I use Supabase in iOS (Swift) - Android (Kotlin)? Is there any client?
    n
    s
    • 3
    • 4
  • s

    Scott P

    03/19/2022, 9:36 PM
    Is there a specific process for updating a user phone number? (More details in thread)
    n
    g
    • 3
    • 7
  • n

    Needle

    03/19/2022, 10:17 PM
    Hello ! This thread has been automatically created from your message in 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.
    o
    • 2
    • 2
  • l

    leynier

    03/19/2022, 10:56 PM
    I'm getting this error when making a request using postgrest
    {'message': 'permission denied for table clients', 'code': '42501', 'details': None, 'hint': None}
    I have tried putting and removing the RLS to the table, and it keeps the error. It seems to be a postgres level permissions error, is there a way to reset to default permission settings?
    n
    g
    • 3
    • 4
  • t

    theuknowner

    03/20/2022, 7:37 PM
    Hello, is there any info about realtime concurrency in Supabase? Is Supabase able to handle 5K concurrent users (listeners etc..) with the basic plan (2GB Ram - 2vCPU)?
    n
    g
    • 3
    • 11
  • b

    bluetoothfx

    03/20/2022, 9:44 PM
    Getting following error when I am creating new table with 30 columns. (Free tire) Have a foreign key relationship with user table.
    n
    • 2
    • 5
  • d

    daviscup

    03/20/2022, 9:51 PM
    Hi guys! the supabase.getPublicUrl() method returns a URL without ?token={token} at the end of the URL, so it can't be accessed as img src. How can i get the url+access token which the Copy URL button in my app.supabase/project/storage/buckets/bucket-name returns?
    n
    g
    • 3
    • 18
  • c

    Crane

    03/20/2022, 10:05 PM
    Hi folks,
    n
    g
    • 3
    • 8
  • d

    Deleted User

    03/21/2022, 1:37 AM
    hey, I would like to know, is it possible to use custom domain at all?
    n
    o
    • 3
    • 18
  • d

    d33pu

    03/21/2022, 2:57 AM
    Hello everyone, I have a function that returns values. How can I call this function from curl script point of view? I've tried this script but it didn't work
    Copy code
    curl 'https://cbgccbohphtbbvnoecep.supabase.co/rest/v1/latestOilTracker?select=*' \
    -H "apikey: xxx" \
    -H "Authorization: Bearer xxx"
    In the above script "latestOilTracker" is actually a function
    n
    g
    • 3
    • 17
  • j

    json

    03/21/2022, 4:32 AM
    Hey there! I don't see anything about the TTL of a Magic Link - just that it can be requested once every 60 seconds. When does a magic link expire?
    n
    g
    • 3
    • 4
  • s

    singgih

    03/21/2022, 8:03 AM
    Hi, why can't I see my own attendance if I use this policy?
    Copy code
    ALTER POLICY "only own user can see attendance" IN public.attendance USING (( EXISTS ( SELECT 1 FROM profile WHERE (profile.id = attendance.profile_id) ) )))) ;
    return empty from server . I just want to learn how the policy rules work. if I try
    Copy code
    auth.uid() = profile_id
    it works.
    n
    g
    • 3
    • 5
  • t

    TMShader

    03/21/2022, 1:37 PM
    Is is possible to create a policy that a user can upload an image or modify that image, but only if it matches their uuid ?
    n
    o
    • 3
    • 7
  • t

    thewebbeckons

    03/21/2022, 3:03 PM
    anyone know if there is a section to download invoices on supabase? can't seem to find it.
    n
    g
    • 3
    • 4
  • m

    Manuel Coffin

    03/21/2022, 3:34 PM
    Hey guys! I'm facing an issue updating a password on NextJs project. Basically, I have a reset password method that works perfectly. First I send an email with a reset link, that opens a page where the user can update his password like so:
    Copy code
    js
    const { error, data } = await supabase.auth.api.updateUser(token, { password: password.trim() })
    the token being the one in the url. This works, but when I try to update the password for a logged in user, using the exact same method
    supabase.auth.api.updateUser
    , it fails to find the user; The difference is the token is the
    session.access_token
    So I've tried to use the
    supabase.auth.api.updateUserById
    method, but it gives me another error:
    { message: 'User not allowed', status: 401 }
    Any ideas? I feel the docs about this is not very clear, and probably outdated as it doesn't show all the available methods :/
    n
    • 2
    • 4
  • g

    GHOST

    03/21/2022, 6:30 PM
    [SOLVED] Does anyone know what the rls policy for a SELECT would look like where the user should only be able to get their own data? The table they are selecting from has a
    user_id
    property that contains their id
    n
    s
    • 3
    • 13
  • p

    patcito

    03/21/2022, 9:32 PM
    hey
    n
    o
    • 3
    • 3
  • p

    patcito

    03/21/2022, 9:33 PM
    why isn't this working? "CREATE POLICY "ss" ON public.profiles FOR SELECT USING (auth.uid() = id);" I get "Error adding policy: operator does not exist: uuid = character varying" This is recommended in the doc, what am I missing?
    n
    s
    • 3
    • 3
  • d

    drilkmops

    03/21/2022, 10:07 PM
    Is there a way to get supabase to set the type as a
    number[]
    ? When i set it as that it seems to get return as
    type: 'array', format: 'ARRAY'
    n
    • 2
    • 6
  • v

    VΞLO

    03/21/2022, 11:39 PM
    I need a locking mechanism for a table row to ensure that at most one of multiple potential concurrent serverless functions hitting supabase will win and then perform some external work that eventually results in a database update before any other serverless function modifies therow. I can think of several ways to do this with more traditional Postgres clients; what is the recommended approach with supabase? ...or is this cutting against the grain? I need the equivalent of a select_for_update atomic client-side transaction. I cannot put this in a stored procedure because the client-side transaction might fail and need rollback.
    n
    a
    • 3
    • 6
  • c

    CipherCode

    03/22/2022, 12:35 AM
    Copy code
    javascript
    const mySubscription = supabase
      .from('*')
      .on('*', payload => {
        console.log('Change received!', payload)
      })
      .subscribe()
    im using this push notification code from the documentation, and i set the trigger and the function in the supabase interface but im still not getting the console.log('change received'....
    n
    s
    g
    • 4
    • 33
  • l

    Lukas

    03/22/2022, 12:58 AM
    how can I validate what the user is sending the server? I'm currently using nextjs with client side code to write to the db. I'm using Yup for client-side validation, but I'm not sure how to do serverside validation with supabase.
    n
    g
    • 3
    • 4
  • p

    Prodigy7kX

    03/22/2022, 2:49 AM
    Hey, can I apply two conditions to a RLS statement using
    OR
    ? like this:
    ((is_public = true) OR (uid() = user_id))
    n
    s
    s
    • 4
    • 14
  • a

    Avin

    03/22/2022, 5:29 AM
    How does postgres get the current authenticated user, i.e.
    auth
    to run checks in RLS policies?
    n
    p
    g
    • 4
    • 4
  • c

    cateru

    03/22/2022, 10:22 AM
    Im trying to Host it on Raspberry pi 4. but it gives me this Error:
    standard_init_linux.go:228: exec user process caused: exec format error
    n
    s
    o
    • 4
    • 11
  • i

    InvestorChris

    03/22/2022, 11:59 AM
    is there any tutorial/info on how to use supabase with RxJS? (angular) what I'm currently struggling with is how to continue my pipe, when the data gets returned as a promise
    n
    o
    • 3
    • 5
  • d

    dmytro.eth

    03/22/2022, 12:02 PM
    I want to do the RLS rule on storage that needs to make a call to the database table? Is that possible or do I need a backend for such check?
    n
    a
    g
    • 4
    • 4
  • m

    Manuel Coffin

    03/22/2022, 12:39 PM
    Hey guys, I'm trying to upload an avatar for authenticated users, but I keep getting this error:
    Copy code
    error: "Key is not present in table \"users\"."
    message: "insert or update on table \"objects\" violates foreign key constraint \"objects_owner_fkey\""
    statusCode: "23503"
    I'm not sure of what it means 🤷‍♂️ Maybe my policies are not properly set? Or could it be that the
    roles=authenticated
    property of the request is not understood by supabase? Any advice about this?
    n
    g
    o
    • 4
    • 36
1...245246247...316Latest