Error when insert in table "profiles" with edge-function and SERVICE_ROLE_KEY
I'm confused today.
I have an edge function that inserts into a table with RLS enabled.
I thought I read in the documentation that if I create a client with the SERVICE_ROLE_KEY key, RLS are ignored/overridden.
This doesn't seem to be the case, given my error:
"{\n code: "42501",\n details: null,\n hint: null,\n message: 'new row violates row-level security policy for table "profiles"'\n} {"code":"42501","details":null,"hint":null,"message":"new row violates row-level security policy for table \"profiles\""}\n"
Do you have any leads on this? I've been stuck on this for several days. My edge function:
Thanks for help
I have an edge function that inserts into a table with RLS enabled.
I thought I read in the documentation that if I create a client with the SERVICE_ROLE_KEY key, RLS are ignored/overridden.
This doesn't seem to be the case, given my error:
"{\n code: "42501",\n details: null,\n hint: null,\n message: 'new row violates row-level security policy for table "profiles"'\n} {"code":"42501","details":null,"hint":null,"message":"new row violates row-level security policy for table \"profiles\""}\n"
Do you have any leads on this? I've been stuck on this for several days. My edge function:
Thanks for help