© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
30 replies
Ivan Starkov

PostgresT, 520 error and 40s delays.

We are using Supabase PostgREST (via the postgrest-js library). Our database is hosted in Western Europe. The problem is that from certain regions, such as Dubai (DXB), we are seeing a large number of 520 errors.

I’ve read about retries, but the main issue is that these 520 errors occur after a 40-second delay. Most of these errors happen on simple INSERT requests (POST), with no large payloads or headers involved.

Our backend is on cloudflare, but I see this error during local dev too.

What could be causing this, and how can we fix it?
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

404 and PostgREST; error=PGRST205
SupabaseSSupabase / help-and-questions
3w ago
HTTP 400 and PostgREST; error=42703
SupabaseSSupabase / help-and-questions
3w ago
Getting 520 and 521 error on branch
SupabaseSSupabase / help-and-questions
7mo ago
PostgREST
SupabaseSSupabase / help-and-questions
6mo ago