You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
When calling supabase.functions.invoke to a function that responds with non-2xx status code following error is returned with null data:
FunctionsHttpError: Edge Function returned a non-2xx status code
Supabase gives full freedom on how Edge Functions are implemented without enforcing any schema. However, supabase-js is enforcing some response schema because it discards response body when status is non-2xx.
Bug report
Describe the bug
When calling
supabase.functions.invoketo a function that responds with non-2xx status code following error is returned with null data:Supabase gives full freedom on how Edge Functions are implemented without enforcing any schema. However,
supabase-jsis enforcing some response schema because it discards response body when status is non-2xx.To Reproduce
datais null.Expected behavior
datais available when Edge Functions responds with non-2xx response.