© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
6 replies
Lani

RLS policy blocking Insert from Debug

Would anyone know why this is happening?
"
Error submitting review: PostgrestException(message: new row violates row-level security policy for table "reviews", code: 42501, details: , hint: null)
"

- My logged-in Flutter user cannot perform an INSERT on a table with a simple RLS policy FOR INSERT TO authenticated WITH CHECK (true) or WITH CHECK (auth.role() = 'authenticated').
- The action succeeds when RLS is disabled.
- We have verified the anonKey, the table schema, foreign keys, and data types are all correct.
- We have recreated the policies and the table itself using the SQL editor.

Does Flutter not fully "Authenticate" users unless the app is deployed properly?
I'm running it in VSCode debug instance
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

RLS - Help with Insert Policy
SupabaseSSupabase / help-and-questions
4y ago
RLS Policy
SupabaseSSupabase / help-and-questions
4mo ago
Debug RLS
SupabaseSSupabase / help-and-questions
4y ago
Access insert values from policy
SupabaseSSupabase / help-and-questions
4y ago