AI & Agent Dev Bug Sandbox logo
AI & Agent Dev Bug Sandbox
Back to Radar

Supabase Pooler Connection Timeout Causes Full Production Outage In Us-East-1

Project wwxjopfybrfomtealpjc on Supabase us-east-1 experiences complete database query outage due to connection timeouts through the managed pooler. PostgREST root responds but data queries hang or return 503, while direct database connections succeed intermittently, indicating pooler layer failure after maintenance.

criticalConfidence 78%SupabasepgvectorStorage

Origin Analysis

Supabase managed connection pooler (pgBouncer/Supavisor) in us-east-1 did not fully recover after maintenance, leaving stale or unhealthy connections that cause new queries to time out. The database itself is healthy as shown by direct connections and idle pg_stat_activity, but the pooler is unable to establish or reuse connections reliably.
1. Send any data query via Supabase REST API or client libraries to project wwxjopfybrfomtealpjc. 2. Observe request hangs indefinitely or returns 503 with 'Connection terminated due to connection timeout'. 3. Test direct database connection using the direct connection string; approximately 1 in 3 attempts succeed. 4. On successful direct connection, run pg_stat_activity and see mostly idle backends with no application queries, confirming database health. 5. Check Supabase status page for us-east-1; incidents are marked resolved but the issue persists.

Fixing Code Block

Edge Case Audit

Using direct connections bypasses connection pooling, which may exhaust database connection limits under high concurrency. This workaround should only be used until the pooler is confirmed healthy. After Supabase resolves the incident, revert DATABASE_URL to the pooler URL and restart the application. In multi-threaded or distributed environments, ensure the environment variable change is propagated atomically. Test with a small subset of traffic before full rollout. Rollback: restore original DATABASE_URL and restart services.

Ecosystem Topology

Agent Frameworks

LangChain, LlamaIndex, and Pydantic

  1. highProperty graph relation keys collide when entity IDs or labels contain underscores
  2. highCodeActAgent drops assistant tool-call metadata during handoff, leaving an orphan tool response
  3. high[Bug]: HierarchicalNodeParser async methods return the documents unsplit
  4. highLLM.predict_and_call fails with ValidationError for non-function-calling models when react_chat_formatter is omitted
  5. highAnthropic streaming server-tool input_json_delta overwrites completed client tool_use arguments due to stale cur_tool_call state