Tech
Supabase RLS errors in Lovable and Bolt apps (and how to fix them safely)
If you built your app with Lovable or Bolt on top of Supabase, sooner or later you'll see this:
new row violates row-level security policy for table "todos"
That's Postgres error code 42501 . Its quieter cousin is worse: a select that returns [] with no error , even though the table clearly has rows.
Why it happens
When Row Level Security (RLS) is enabled and no policy allows an action, Supabase blocks it. Common causes in AI-built apps:
RLS is enabled bu...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to