GithubHelp home page GithubHelp logo

Unable to create RLS from dashboard in local environment -> `Please provide a SQL expression for the WITH CHECK statement` about supabase HOT 18 CLOSED

dninomiya avatar dninomiya commented on September 26, 2024
Unable to create RLS from dashboard in local environment -> `Please provide a SQL expression for the WITH CHECK statement`

from supabase.

Comments (18)

Keagel avatar Keagel commented on September 26, 2024 2

Can confirm it's fixed for me too. Thank you!

from supabase.

encima avatar encima commented on September 26, 2024 1

That error is because the policy does not exist, it should be a create statement and not alter.

from supabase.

dninomiya avatar dninomiya commented on September 26, 2024 1

I started with a clean install of Docker on another Mac and run bunx supabase init & bunx supabase start but got the same error.

I didn't do anything particularly tricky, I just tried initializing it, creating a table with default settings, and adding an insert policy using a template.

from supabase.

rdsants avatar rdsants commented on September 26, 2024 1

I'm having the same problem using the latest version.

However, I can create the policy through the SQL Editor. The error Failed to generate title: No OPENAI_KEY set... appears but when you press f5 on the policies page it will be created.
image

Policy appearing created in the panel (despite the SELECT visualization bug on line 7):
image

from supabase.

Keagel avatar Keagel commented on September 26, 2024 1

I'm also encountering the same issue. I started using the local development setup for the very first time two days ago so everything was freshly installed after the mentioned fix.

from supabase.

dninomiya avatar dninomiya commented on September 26, 2024 1

Perhaps because of yesterday's update, I tried it now and it worked properly! thank you. I will close this issue if others have solved it as well.

from supabase.

encima avatar encima commented on September 26, 2024

HI there, thanks for opening!

I am unable to reproduce on the latest. Can you list the image versions you have so we can reproduce please?

from supabase.

dninomiya avatar dninomiya commented on September 26, 2024

Thank you for your support! This is the version of the image. Initialized with bunx supabase init.

image image

from supabase.

saltcod avatar saltcod commented on September 26, 2024

Hi @dninomiya — a fix for this should have gone out in yesterday's release. Could you check that you're on the latest version?

thanks for the report!

from supabase.

dninomiya avatar dninomiya commented on September 26, 2024

@saltcod
Thank you for your support! However, it seems like I'm still getting the same error. Is my understanding correct that images are created with the latest version by bunx supabase init?

  1. bunx supabase init
  2. bunx supabase start
  3. go to local dashboard
  4. create simple posts table(default columns)
  5. add insert RLS from local dasoboard -> same error
image image

from supabase.

encima avatar encima commented on September 26, 2024

@dninomiya not if it is within an existing project. You can do that in a new directory or you can remove supabase/.temp and run the command again.

from supabase.

dninomiya avatar dninomiya commented on September 26, 2024

@encima
This example is a new project with zero-based settings. 🤔

#22580 (comment)

from supabase.

encima avatar encima commented on September 26, 2024

Noted, thanks. Maybe clear your docker cache and remove the images locally in that case

from supabase.

dninomiya avatar dninomiya commented on September 26, 2024

@encima
Thanks you for your support!
I removed all images, but it has same error.

By the way, when I try to create RLS using SQL, I get the following error. 🤔

image

Failed to generate title: No OPENAI_KEY set. Create this environment variable to use AI features.

from supabase.

encima avatar encima commented on September 26, 2024

hey @dninomiya
this should be fixed now as far as I know, could you try again and report back please?

from supabase.

encima avatar encima commented on September 26, 2024

ack, thanks. I cannot reproduce on OSX but lemme try on a clean system and see if I can get the same results. If not, I will ask a member of the frontend to check this.

from supabase.

dninomiya avatar dninomiya commented on September 26, 2024

@encima
Thank you your support! (By the way My Mac OS is 14.4.1(23E224)).

It may be unrelated, but I will try using npx without using bun. -> same error too .. 😨

from supabase.

stefan-girlich avatar stefan-girlich commented on September 26, 2024

Issue still exists for me, using Supabase CLI. I updated just now using supabase link && supabase start as advised by the CLI, but container images are outdated:

public.ecr.aws/supabase/studio:20240326-5e5586d
public.ecr.aws/supabase/postgres-meta:v0.80.0
public.ecr.aws/supabase/edge-runtime:v1.41.3
public.ecr.aws/supabase/imgproxy:v3.8.0
public.ecr.aws/supabase/storage-api:v1.2.1
public.ecr.aws/supabase/postgrest:v12.0.2
public.ecr.aws/supabase/realtime:v2.27.5
public.ecr.aws/supabase/inbucket:3.0.3
public.ecr.aws/supabase/gotrue:v2.150.1
public.ecr.aws/supabase/kong:2.8.1
public.ecr.aws/supabase/logflare:1.4.0
public.ecr.aws/supabase/postgres:15.1.1.19
public.ecr.aws/supabase/vector:0.28.1-alpine

Is there another way to update I should try?

from supabase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.