1
`supabase.functions.invoke()`: Return data with error
Source: supabase/supabase#11886 · opened by @cohlar
When invoking an edge function with the supabase client, we receive either data (if status code is 2XX) or error, but never both.
However sometimes it is useful to return meaningful data together with an error status code. For example APIs with limited tokens would return an object with the number of remaining tokens and the token refill rate under status code 429.
However sometimes it is useful to return meaningful data together with an error status code. For example APIs with limited tokens would return an object with the number of remaining tokens and the token refill rate under status code 429.
No pledges yet. Be the first to back this.
Comments
Similar requests
Add option to `supabase functions deploy` to delete non-local functions
2 votes · 0 comments
Edge functions not showing in local Supabase Studio
15 votes · 0 comments
Standardize Error Codes Across Supabase Ecosystem
1 vote · 0 comments
PROCEDUREs aren't shown in the Functions view
6 votes · 0 comments
Replace Deno Runtime for Edge Functions with Dapr
11 votes · 0 comments
No comments yet.