https://supabase.com/ logo
Join Discord
Powered by
# off-topic
  • c

    charles.morrow

    03/02/2022, 6:01 PM
    Having abit of an emergency here and already on pro plan
  • i

    irrationaljared

    03/02/2022, 8:13 PM
    I'm trying to implement a RLS policy using the following "Using expression": >
    Copy code
    auth.uid() in (
    >   select   profile."userId"
    >   from     profile, "_profileToteam", project
    >   where    profile.id = "_profileToteam"."A"
    >     and    "_profileToteam"."B" = project."teamId"
    >     and    project.id = id
    > )
    but I'm getting the error: > Error adding policy: column reference "id" is ambiguous My understanding from the documentation here: https://supabase.com/docs/guides/auth/row-level-security that the "id" would be the project id. Why is it "ambiguous" or is referring to something else?
    g
    s
    s
    • 4
    • 10
  • g

    garyaustin

    03/02/2022, 8:37 PM
    RLS ambiguous column
  • m

    mikeanth

    03/02/2022, 8:56 PM
    Hey Guys! I just deployed supabase via docker with the default docker-compose and .env files and When i go to localhost:3000 -> default project -> api i get this screen
  • m

    mikeanth

    03/02/2022, 8:57 PM
    Chrome console error:
  • m

    mikeanth

    03/02/2022, 8:57 PM
    any ideas?
  • m

    mikeanth

    03/02/2022, 9:25 PM
    Managed to solve it by running:
    Copy code
    sudo echo "127.0.0.1  kong" >> /etc/hosts
  • i

    irrationaljared

    03/03/2022, 2:18 AM
    Is there any way to sync RLS policies for local development?
    s
    • 2
    • 2
  • s

    silentworks

    03/03/2022, 8:32 AM
    Syncing RLS policies
  • k

    KrisGunnars

    03/03/2022, 8:56 AM
    How to delete the Supabase API logs? They have become so massive that I've exceeded my project size and Supabase stopped working
    s
    c
    • 3
    • 2
  • s

    sylar815

    03/03/2022, 11:26 AM
    there is log retention period i suppose
  • s

    silentworks

    03/03/2022, 11:33 AM
    Supabase API logs
  • c

    cryostatic

    03/03/2022, 12:34 PM
    hello any supabase expert here to help me answer a question ?
  • c

    cryostatic

    03/03/2022, 12:34 PM
    i am totally new to supabase and i have a question
  • c

    chipilov

    03/03/2022, 12:38 PM
    it's best to ask your question in the #843999948717555735 channel and start a new thread for it - that way someone who knows the answer to your question can see it and reply to it
  • c

    cryostatic

    03/03/2022, 12:52 PM
    thank you chipilov gonna ask in the help section
  • t

    tricked

    03/03/2022, 4:01 PM
    i remember when there was 20gb storage 😔
  • l

    lopezjurip

    03/03/2022, 7:31 PM
    hello 👋 why
    geometry
    fields (postgis) are returned as GeoJSON but
    geography
    fields are returned as WKB strings? is it possible to force geojson?
  • v

    vbaluch

    03/04/2022, 4:46 AM
    Encountered the same issue and went with this eventually: >
    Copy code
    > CREATE OR REPLACE FUNCTION geography_to_geojson(geography) RETURNS json AS $$
    >   SELECT extensions.ST_AsGeoJSON($1)::json;
    > $$ LANGUAGE SQL;
    > 
    > CREATE CAST (geography AS json) WITH FUNCTION geography_to_geojson(geography);
    >
    l
    • 2
    • 2
  • s

    sameh

    03/04/2022, 5:17 AM
    phone auth persistence doesn't work as many have reported because the session object returned from the
    verifyOTP
    doesn't have `expires_at`field https://github.com/supabase/gotrue-js/blob/master/src/GoTrueClient.ts#L707
    Copy code
    if (this.persistSession && session.expires_at) {
          this._persistSession(this.currentSession)
        }
  • c

    chipilov

    03/04/2022, 8:23 AM
    For things like this, I think it's best to open an issue on GitHub repo
  • b

    batuhanbilginn

    03/04/2022, 10:05 AM
    Is there any limit for concurrent connections to supabase real-time?
    m
    • 2
    • 1
  • m

    Maus

    03/04/2022, 1:09 PM
    Concurrent real-time connections
  • c

    callum.m

    03/04/2022, 3:14 PM
    Sorry to bump a PR in here, but I opened a PR about a month ago in supabase-cli to add a dry-run flag to the db push command: https://github.com/supabase/cli/pull/161 I've used this every time I've done a db push since and would really love to get it merged so I'm not running a fork! Is there any chance it could get a review from a maintainer when you have a chance? 🙂
  • b

    bluetoothfx

    03/04/2022, 3:52 PM
    Hi, did you able to mange connect it from localhost? I am facing CORS issue. Also this page is is having error code 500 issue. Your command is returning access denied. Any idea?
  • p

    productdevbook

    03/04/2022, 5:03 PM
    postsqresql time -> ts
    Date
    ? @Field({ nullable: true }) @Column({ type: 'time', nullable: true, default: null }) time?: Date;
  • m

    mikeanth

    03/04/2022, 5:29 PM
    @bluetoothfx you ran it with sudo and got access denied?
  • b

    bluetoothfx

    03/04/2022, 5:29 PM
    after logging with root I have executed but no luck
  • m

    mikeanth

    03/04/2022, 5:30 PM
    The problem is, as far as i understand, that it redirects to http://kong , but you probably don't have a dns entry for kong in order to resolve it to an actual address
  • m

    mikeanth

    03/04/2022, 5:30 PM
    That is, at least, what fixed it for me
1...195196197...392Latest