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

    batuhanbilginn

    12/06/2021, 11:21 AM
    {message: 'Could not find a relationship between chats and user_id in the schema cache', hint: 'If a new foreign key between these entities was cr… in the database, try reloading the schema cache.'}hint: "If a new foreign key between these entities was created in the database, try reloading the schema cache."message: "Could not find a relationship between chats and user_id in the schema cache" Is there anybody who is having this problem on relational tables?
    s
    a
    • 3
    • 7
  • s

    silentworks

    12/06/2021, 12:33 PM
    Redirect to
  • s

    Steve

    12/06/2021, 3:28 PM
    could not find relationship
  • x

    Xzeta

    12/06/2021, 5:43 PM
    is there a better way to get user session and user profile at the same time when user logins. my current method
    Copy code
    useEffect(() => {
        const userSession = supabase.auth.session();
        setSession(userSession);
        if (userSession) {
          getProfile(userSession.user.id);
        } else {
          setSession((s) => ({ ...s, profile: null }));
        }
        supabase.auth.onAuthStateChange((_event, session) => {
          setSession(session);
    
          if (session) {
            getProfile(session.user.id);
          } else {
            setSession((s) => ({ ...s, profile: null }));
          }
        });
      }, []);
  • m

    Muphet

    12/06/2021, 5:47 PM
    as started little in general, does supabase return discord token when authorized using oauth? im looking forward to use that token to do authenticated request to discord API
  • v

    Victor Peralta

    12/06/2021, 7:29 PM
    I think that's as good as it gets
  • v

    Victor Peralta

    12/06/2021, 7:29 PM
    Yes, the session includes the provider token
  • m

    Muphet

    12/06/2021, 7:36 PM
    hm, gonna need to figure out why discord returns me unauthorized but at least i know now where token is 😄
  • p

    Prodigy7kX

    12/06/2021, 8:15 PM
    is there a way to get more than just the ID of the row I'm deleting via the Realtime listener
  • p

    Prodigy7kX

    12/06/2021, 8:15 PM
    ?
  • d

    dipankarmaikap

    12/06/2021, 8:17 PM
    Hii all Can someone guide me with the policie 1. post owner can CRUD works
    auth.uid() = author_id
    2. public can read published posts works is_published = true 3. authenticated user can read all his posts How to achive this? I can only see published post
  • p

    Prodigy7kX

    12/06/2021, 8:19 PM
    even when you're authenticated in?
  • d

    dipankarmaikap

    12/06/2021, 8:19 PM
    yes
  • d

    dipankarmaikap

    12/06/2021, 8:25 PM
    is there any ordering of the policy.? after setting
    select is_published = true
    even loggedin i cant view the post
  • g

    garyaustin

    12/06/2021, 8:41 PM
    Probably want an OR as the condition for the select (read) policy. (is_published = true OR auth.uid() = auther_id)
  • c

    claud9

    12/06/2021, 9:02 PM
    Does anyone have more information on memory % usage? We are at 70% and don't know if that's good or bad. From my perspective it's bad but I wonder what does everyone else look like?
  • u

    user

    12/06/2021, 9:18 PM
    Hello! I'm trying to create a oauth login on a flutter app using supabase, but it keeps returning me this ⤵️ "Kong Error" screen
  • u

    user

    12/06/2021, 9:19 PM
    this is the code
  • l

    LOYAL

    12/07/2021, 1:25 AM
    Hi, does Supabase has DDoS protection? since PostgreSQL is charged by usage, I'm a little bit worried
  • k

    Khan W

    12/07/2021, 2:35 AM
    Kong has the ability to rate-limit using a built-in plugin and I'd be willing to bet that the default Supabase deploy has the plugin installed otherwise Supabase projects in general would be vulnerable to that kind of abuse. Supabase uses Kong as a gateway for all API requests to any Supabase service in your project https://docs.konghq.com/hub/kong-inc/rate-limiting/ Also PostgreSQL is charged only by database space, you should have unlimited API requests so the only threat from a DDOS attack would be slowing down your DB. If they did end up forcing your egress usage (2GB) the Supabase team would reach out to you about the limit being met and you could figure out how to mitigate against that attack, but your services would remain online. https://supabase.com/pricing
  • p

    Prodigy7kX

    12/07/2021, 2:38 AM
    is there a way to get more than just the ID of the row I'm deleting via the Realtime listener?
  • a

    anothercoder

    12/07/2021, 2:54 AM
    I suppose u call supabase createClient with the anon key already.
  • c

    cjog

    12/07/2021, 2:54 AM
    Can someone shed some light on the ability to choose a cloud provider or region/data center for supabase cloud deploys. Currently I only notice Aws in thr Us region and would like to deploy to gcp in frankfurt region with GDPR regulatory requirements. I don't want to self host.
  • a

    anothercoder

    12/07/2021, 2:55 AM
    See Notes and Listening to deletes: https://supabase.com/docs/reference/javascript/subscribe
  • p

    Prodigy7kX

    12/07/2021, 3:05 AM
    Is there a downside for using it? Like performance?
  • a

    anothercoder

    12/07/2021, 3:07 AM
    U may ask supabase team...
  • p

    Prodigy7kX

    12/07/2021, 3:07 AM
    Bet
  • p

    Prodigy7kX

    12/07/2021, 3:07 AM
    And thank you very much
  • n

    NiFTiChristian

    12/07/2021, 4:38 AM
    Hi gang! Is it possible to generate a signedURL from an rpc call? I'm making an rpc call in JS to get a record, but I'd also like the ability to return the signedURL of an image in my bucket associated with that record. Is that possible? Thanks!
  • k

    Khan W

    12/07/2021, 5:19 AM
    You could check how the storage api creates a signed URL in PostgreSQL and recreate it in the RPC function. You'd need to create a signed URL using the normal API and then just check the storage schema in the supabase dashboard to see what data is being stored and such.
1...153154155...316Latest