© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•14mo ago•
5 replies
Schaltza

Enable insert for anon

Hi!

I'm learning about Supabase and I've created a little project in python using supabase-py client. I created a "event-logs" table, enabled the RLS with a policy:
`
create policy "Enable insert for anon"
on public.event_logs
to anon
with check (true);
`
create policy "Enable insert for anon"
on public.event_logs
to anon
with check (true);

but everytime my supabase-py db client tires to execute the insert I get the 

but everytime my supabase-py db client tires to execute the insert I get the 
Failed to log event: {'code': '42501', 'details': None, 'hint': None, 'message': 'new row violates row-level security policy for table "event_logs"'}`
and I can not figure out why.
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

RPC anon insert return ID
SupabaseSSupabase / help-and-questions
4y ago
RLS insert still failing for anon role even with correct policy
SupabaseSSupabase / help-and-questions
6mo ago
how to enable insert access for everyone in supabase
SupabaseSSupabase / help-and-questions
8mo ago
Anon privilege?
SupabaseSSupabase / help-and-questions
4mo ago