Meaningless errors from supabase edge functions
In my edge function i throw a error like this:
In my app I catch it
but the errors are very meaningless its always
FunctionsHttpError: Edge Function returned a non-2xx status code
How can I get a usefull error from the SDK, so the message of the error.|
The response does correctly contain the error if i look in the network tab
3 Replies
I was thinking of decoding the json response manually but that seems awkward when there is a sdk. Am i missing something?
JavaScript: Invokes a Supabase Edge Function. | Supabase Docs
Supabase API reference for JavaScript: Invokes a Supabase Edge Function.
See the error handling tab