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?