© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago
httpteapot

REST API unreliable when called from a Vercel edge function

Hello,
I use the REST api of supabase to insert a record into a table
fetch(mySupabaseEndpoint, {method: "POST", headers, body})
fetch(mySupabaseEndpoint, {method: "POST", headers, body})
. It works when I run this function locally, but not when I deploy it to a Vercel edge function.

What is weird is that :
- It's unpredictable, it works 1/4 of the time
- there is no error or exception
- I don't get result from the
fetch
fetch
, it hangs indefinitely. If I
await fetch(...); console.log('hello')
await fetch(...); console.log('hello')
, the text
hello
hello
is not displayed

I'm calling other API from this same Vercel edge function with no issue. Any idea what could be the problem here?
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 - REST API
SupabaseSSupabase / help-and-questions
3y ago
403 when invoking sb edge function from vercel function
SupabaseSSupabase / help-and-questions
5mo ago
Supabase edge functions REST API
SupabaseSSupabase / help-and-questions
4mo ago
Edge Function returning 401 when called outside Supabase dashboard
SupabaseSSupabase / help-and-questions
4w ago