© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•7mo ago•
1 reply
C. Molendijk

Getting an 204 status code without content using supabase.functions.invoke cause error

When we invoke an supabase function and getting an 204 return with no content then the function crash. While i'm expacting that when resolved to an 204 (no-content see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/204) it doesn't try to parse the json. Is this an bug or do we need to send something extra with the invoke method to make sure we don't parse the response by default?

Our code looks like this:

await supabase.functions.invoke(
"item_delete",
{
method: "DELETE",
body: { id: itemId }
}
);
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Edge Functions - inconsistent results when running .invoke locally using supabase serve
SupabaseSSupabase / help-and-questions
8mo ago
Edge functions supabase error
SupabaseSSupabase / help-and-questions
5mo ago
Using Supabase client to invoke another function
SupabaseSSupabase / help-and-questions
4mo ago
Getting CHANNEL_ERROR status
SupabaseSSupabase / help-and-questions
4y ago