Standardize CRUD errors returned #32848
Unanswered
GGAnderson
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
With Create call to a public read, RLS active database, the return object is error-coded as a row level security violation:
Object {code: "42501", details: null, hint: null, message: 'new row violates row-level security policy for table "xxxx"'}
The Update call to the same database fails silently, returns an empty data array and null error. This empty data array causes real pain. It should not fail silently, but return an object with an error code similar to Create.
All CRUD calls should return error codes. These should be consistent, and match the documentation.
https://supabase.com/docs/guides/auth/debugging/error-codes
All reactions