REST API failing with HTTP/2 connection errors - auth works, dashboard works, API calls fail
🔢DB Connections
Hey everyone, I've been stuck on this issue for about a week and have exhausted all troubleshooting options.
The Problem: My app can authenticate users successfully, and I can see all my data in the Supabase Dashboard (Table Editor, SQL Editor), but ALL REST API calls from my frontend fail with connection errors:
Verified correct Supabase URL Verified API keys match (tried both legacy anon key AND new sbpublishable format) Tested on multiple browsers (Chrome, Safari) Tested on multiple networks (home WiFi, mobile cellular data) Tested on multiple devices (desktop, mobile) Fresh Vercel redeploy (cleared build cache) Restarted the Supabase database Verified all database functions and triggers exist Using @supabase/supabase-js v2.47.11 What works:
Auth/login (can sign in, session persists) Dashboard Table Editor (can see all my data) SQL Editor queries (work perfectly) What doesn't work:
Any REST API call from my app - connections drop before completing Console errors look like this:
Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR Failed to load resource: net::ERR_CONNECTION_CLOSED Failed to load resource: net::ERR_CONNECTION_RESET [Data] Parallel loading failed, trying sequential [Data] Attempting sequential loading... [Data] Error loading user data
I saw GitHub issue #39844 describes similar symptoms. Is this a known infrastructure issue? Any workarounds that have worked for others?
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.