© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
2 replies
jxyz

DELETE user_role RLS fails silently instead of returning RLS error to user

We encountered this days ago but we ignored it at the time because manual browser-side checks can still prevent the end-user from encountering this bug.

Simply put our RLS on INSERT works as expected, but our same RLS on DELETE just fails silently.

INSERT returns 403 Forbidden with the correct error message "new row violates row-level security policy for table user_roles".

DELETE however returns 200 OK with empty response body.

The pic attached show these two RLS policies, which kinda boggles us on why the result is inconsistent.

https://github.com/joshxyzhimself/template7/issues/1
unknown.png
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 check current user has a role, if so delete
SupabaseSSupabase / help-and-questions
4y ago
Supabase insertion fails silently
SupabaseSSupabase / help-and-questions
14mo ago
Switching tabs silently fails reconnection
SupabaseSSupabase / help-and-questions
6mo ago
Error when trying to delete user
SupabaseSSupabase / help-and-questions
8mo ago