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

    batuhanbilginn

    04/05/2022, 9:47 AM
    Is there anyone who is facing problems with Realtime Client?
    n
    w
    o
    • 4
    • 10
  • n

    Needle

    04/05/2022, 11:54 AM
    Hello @baran! 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.
  • j

    JustinNoel

    04/05/2022, 12:41 PM
    I added a "Function Hook" via the Supabase dashboard. The hook should trigger on every insert to a table called
    barcodes
    . If I slowly add records to this table, the hook works well. However, if I add records quickly (say 10 in 20 ms), the hook only executes about 3 or 4 times. Is there a built-in throttling or rate-limiting mechanism for "Function Hooks"?
    n
    g
    • 3
    • 6
  • t

    Thomas

    04/05/2022, 1:21 PM
    I started using Supabase for a project where I sign up users with phone numbers. I configured it with Twilio but testing my signup and signin flow is starting to be costly already :p. Is there a way to have "test accounts" where the pair phone numer+otp code is know in advance and Twilio is bypassed?
    n
    s
    • 3
    • 4
  • d

    debabrata

    04/05/2022, 1:40 PM
    Running
    vacuum full
    understandably takes some time but running the command from the SQL editor returns
    An error has occured: Failed to fetch
    . I'm guessing the connection times out since the query takes some time to run. But I would like to know whether the query finished running or not. I think it's getting terminated since the dead tuples are not getting removed.
    n
    • 2
    • 3
  • m

    Martin INDIE MAKERS

    04/05/2022, 2:01 PM
    I'm hitting the payload limit in supabase function :/ do it's possible to have bigger one ?
    n
    • 2
    • 6
  • p

    Perfectó

    04/05/2022, 2:21 PM
    Can I have
    sameSite
    attribute (while setting cookies) set to something else like
    none
    ? I'm not using
    gotrue api
    n
    o
    • 3
    • 10
  • l

    lrnecgcysiam

    04/05/2022, 2:27 PM
    When working with stripe I am asked to provide a API using the bearer auth Where do I apply this within my application or on supabase
    n
    o
    s
    • 4
    • 7
  • u

    usamichizuru

    04/05/2022, 2:51 PM
    Is there any way to search for multiple columns at the same time in API. Sorry if this is such a fundamental question?
    n
    g
    • 3
    • 22
  • n

    Needle

    04/05/2022, 3:51 PM
    Hello @JR23! 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

    Thomas

    04/05/2022, 3:55 PM
    I only let my users sign up using a phone number and password. How to let them reset their password if they forgot it? I can only find
    resetPasswordForEmail
    in
    supabase-js
    .
    n
    s
    o
    • 4
    • 5
  • s

    Sobhan

    04/05/2022, 5:56 PM
    Hello awesome Supabase builders! I'm having a problem uploading videos from my react native application to Supabase. After I capture a video, I get it's URI and then upload it to my Supabase bucket with the following code: const { data, error } = await supabaseClient.storage .from("public") .upload(fileName, decode(videoUri), { contentType: "video/mov", }); console.log("ERROR ADDING VIDEO:", error); console.log("SUCCESS!", data); Supabase returns the following message: SUCCESS! Object { "Key": "public/01CE6CB0-44BA-4FF4-B7D5-77852735732B.mov", } However, once I go to the supabase console, I'm unable to view the video, and when I download the video, Quicktime (on my M1 Chip Mac) tells me it can't play it. Does anyone know why the video isn't properly uploading? Or if it is, why I can't access it after upload? Thanks for your help!
    n
    s
    • 3
    • 3
  • i

    ixxie

    04/05/2022, 6:36 PM
    You don't really seem to have a 'contributing' channel so I will post here; I'm interested in packaging the Supabase server and client as a Nix package and NixOS module (https://nixos.org/); I can understand that as a SaaSy sort of outfit, self-hosting isn't priority #1, but I saw you also offer support contracts and I think this would make supabase appealing for some specific on-premise deployment scenarios that certain industries face. Anyway, I'm not super well versed in Nix stuff, but I am also no total beginner; I'm planning to leverage the Nix community to get some guidance and help on how to do this. What I would like is a little guidance from the supabase team - in particular the infra folks - in understand the deployment patterns. I already found the [self-hosting guide](https://supabase.com/docs/guides/hosting/overview) including the [docker section](https://supabase.com/docs/guides/hosting/docker) and the [docker-compose file](https://github.com/supabase/supabase/blob/master/docker/docker-compose.yml). My questions for now: 1. Would someone from the supabase infra team be willing to advise me throughout this process? 2. Is it so that everything in the deployment can be configured through environment variables (as it seems when looking at the docker-compose file)? 3. I noticed that the new Deno-based functions feature isn't yet in the docker-compose file? I the infra for functions running a little behind still?
    n
    o
    s
    • 4
    • 12
  • a

    Aruzo

    04/05/2022, 6:59 PM
    How can I check if supabase is loading session or session is unauthenticated I'm using @supabase/supabase-js
    n
    o
    v
    • 4
    • 7
  • t

    theuknowner

    04/05/2022, 7:35 PM
    Hello, If i use triggers to call external API, will they block IO until it is completed or are they running in background?
    n
    g
    • 3
    • 26
  • u

    uskolol

    04/06/2022, 7:49 AM
    Hey, first of all thanks for the service. Starting to love using this on my side-project ❤️ got a question! Trying to import data (formatting json into csv then importing that into supabase), issue I am having that somehow if postal code has "0" in front e.g "00300" then value will be "300" at table. In json its on string type and when I import its type gets changed into Int automatically, and I though that caused issue with, so tried to change back to string (text) didnt helped. Any ideas?
    n
    o
    f
    • 4
    • 9
  • u

    uskolol

    04/06/2022, 7:50 AM
    One example (I got 10k row of values)
    n
    o
    • 3
    • 3
  • z

    zukashi

    04/06/2022, 10:19 AM
    pg_graphql Hey all, how would one go about selecting a record from a table via the new graphQL extension on supabase? I have looked at the docs and my numerous attempts at
    tableCollection(id: 1){}
    don't work. Thanks.
    n
    • 2
    • 3
  • u

    4Lajf

    04/06/2022, 10:59 AM
    I have this weird issue. I can't change mail for anyone despite it working the other day I even simplified my function to just
    Copy code
    js
        const udpateEmail = async () => {
            const { user, error } = await supabase.auth.update({ email: 'new@email.com' });
            console.log(user, error);
        };
    And what i get back is the usual user object and no errors at all. But despite that i just won't update on the DB.
    n
    f
    s
    • 4
    • 5
  • n

    Norkin

    04/06/2022, 11:24 AM
    I'm not in the supabase team but I've self hosted supabase. (Almost) Everything can configured through environment variables. The Kong service has some JWT configuration that needs to be configured as well. Deno-based functions are not in the docker compose file indeed. For functions you can see https://github.com/supabase/functions-relay/blob/main/Dockerfile . This shouldn't be too hard to add to Docker-Compose and to update Kong to reroute
    /functions
    to this service. I'm still looking at the cli code to see how functions are deployed on Deno. I'll update here if I find more. Hopefully this helps
    n
    i
    • 3
    • 9
  • e

    enti

    04/06/2022, 3:48 PM
    I know that RLS doesn't apply to views. So right now, I got a view readable to everyone (actually, the user who created the view applies). I also built a function using that view, a function that I use in my front-end. What I want is to disable this view API so the function still works (for all, even for anon), but the view isn't open to everyone. What would be the best way to do that ?
    n
    s
    +2
    • 5
    • 10
  • n

    NARCISO

    04/06/2022, 4:19 PM
    Hey everyone, How can I create RPC, not callable by the js client but only "internally"? Is something about the grants? If yes, then which one should I remove?
    Copy code
    ALTER FUNCTION public.myinternalfunc(jsonb) OWNER TO postgres;
    GRANT EXECUTE ON FUNCTION public.myinternalfunc(jsonb) TO PUBLIC;
    GRANT EXECUTE ON FUNCTION public.myinternalfunc(jsonb) TO anon;
    GRANT EXECUTE ON FUNCTION public.myinternalfunc(jsonb) TO authenticated;
    GRANT EXECUTE ON FUNCTION public.myinternalfunc(jsonb) TO postgres;
    GRANT EXECUTE ON FUNCTION public.myinternalfunc(jsonb) TO service_role;
    n
    g
    • 3
    • 28
  • m

    MechEdge

    04/06/2022, 4:26 PM
    Hello, is the supabase session supposed to be permanent like firebase? I am having problems getting the user to be constantly logged in. I need the session to be resilient to the client being offline or the server being down. Right now it seems like if the token refresh fails once, the session will be completely wiped out and my refresh token is lost.
    n
    g
    • 3
    • 31
  • n

    Needle

    04/06/2022, 5:36 PM
    Hello @shreedx! 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.
  • a

    AshwaqAzan

    04/06/2022, 7:05 PM
    Hello, I'm trying to redirect the user to the app after OAuth but it keep redirecting me to localhost any idea?
    n
    • 2
    • 2
  • n

    Needle

    04/06/2022, 7:16 PM
    Hello @theuknowner! 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

    04/06/2022, 9:31 PM
    Hello @mikepeiman! 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.
  • c

    Certinax

    04/06/2022, 10:31 PM
    Hi, a newcomer here! 🙂 I'm currently developing a project where I need to query data with multiple joins between tables (ref: example below). Is there a way to "flatmap" or remove keys when joining tables in the query itself or do I have to transform it on client side? Been reading through the supabase docs and on resource embedding on postgrest.org - cannot seem to find a solution.
    Copy code
    // Query
    trip(
      id,
      timestamp,
      distance,
      owner:profiles(
        first_name,
        last_name
      )
    )
    
    // Current result 
    {
      id: "",
      timestamp: "",
      distance: 0.0,
      owner: {
        first_name: "",
        last_name: ""
      }
    }
    
    //  Wanted result
    {
      id: "",
      timestamp: "",
      distance: 0.0,
      first_name: "",
      last_name: ""
    }
    n
    s
    • 3
    • 4
  • v

    Victor Peralta

    04/06/2022, 11:14 PM
    Following the edge functions tutorials, just creating the
    hello-world
    function and deploying it, then trying to call it returns
    Copy code
    502: Bad Gateway (ORIGIN_INVALID_XDENO_CONFIG)
    
    The subhoster origin specified an invalid `x-deno-config` header on the boot RPC response: invalid unicode code point at line 1 column 733.
    n
    • 2
    • 5
  • n

    NicoNico

    04/06/2022, 11:18 PM
    hey folks, I'm playing with sql database functions for the first time (in order to accomplish transaction style functionality). I might just abandon and take the risk of things not being "transactional" for prototype purposes. But just wanted to see if anyone has a quick sense of what I'm doing wrong in this statement so far - I'm confused as to what the syntax error at the variable declaration is
    n
    g
    s
    • 4
    • 5
1...253254255...316Latest