© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•8mo ago•
5 replies
tedmasterweb

Edge function frequently returns 504

I'm calling an edge function from a stored function via the net.http_post extension. These calls are async so the execute and move right on.

In my main Edge Function logs, for every 10 successful invocations, I see about 4 that are 504. Looking at the actual edge function logs, I'm not seeing any errors and as far as I can tell, the functions are booting and shutting down properly. Furthermore, all the things I expect to see happening in the edge function, are happening.

The reason this is a problem is because the jobs being processed are seeing the 504 and acting as if the job failed, so they aren't moved to the archive but their "seen" count increments. Thus, I'm wasting lots of cycles re-processing jobs that ultimately return "already been processed".

What in the world could be causing these 504 responses? At this point I'd be happy to pay for support if someone can actually figure this out. Thanks.

Ted Stresen-Reuter
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 Function 504 Timeout on Concurrent Requests
SupabaseSSupabase / help-and-questions
6mo ago
Edge function 502, 503 and 504s
SupabaseSSupabase / help-and-questions
8mo ago
Edge Function
SupabaseSSupabase / help-and-questions
5mo ago
auth edge function
SupabaseSSupabase / help-and-questions
2w ago