42501
ماذا يعني خطأ Postgres (قاعدة البيانات) هذا
كيف يظهر
new row violates row-level security policy for table "<table>"
ماذا يعني
SQLSTATE 42501 is insufficient_privilege: the current database role is not allowed to do what the query asked on this table.
السبب المعتاد في تطبيق مبني بالذكاء الاصطناعي
Supabase tables created by AI tools usually have row level security turned on, but the generated SQL often has no policy that allows insert or update for signed-in users, so every write from the app is refused.
افحص هذا أولًا
In the Supabase dashboard, open the policies for the table named in the error and check that one of them allows this action (insert, update or delete) for the role your request uses.