api connection_error ai_generated true

EventSource: reconnection failed after disconnect

ID: api/sse-reconnection-error

Also available as: JSON · Markdown
78%Fix Rate
82%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
any active

Root Cause

Server-Sent Events reconnection failing.

generic

Workarounds

  1. 90% success Use Last-Event-ID header for resumable SSE connections
  2. 88% success Implement reconnection with exponential backoff

Dead Ends

Common approaches that don't work:

  1. Create new EventSource on every reconnect 72% fail

    Loses Last-Event-ID context

  2. Fall back to polling immediately 68% fail

    Higher load, no streaming benefits