supabase-js
supabase-js copied to clipboard
Error on update()
Version : "@supabase/supabase-js": "2.38.4",
The error object return by the update function is empty => making error identification difficult.
-To reproduce you can for example try to update an non-existent id, or update a database without having the policy right to do it.
const { error } = await supabase.from('countries').update({ name: 'Australia' }).eq('id', 9999)
I have a similar problem with insert() and I don't know what's wrong with my data. This issue combined with a lack of debugger support makes it hard to develop...
Possibly related issue in postgrest-js: https://github.com/supabase/postgrest-js/issues/381