diegosouzapw/OmniRoute · error
STREAM_EARLY_EOF
STREAM_EARLY_EOF
Error message
${classificationReason} What it means
Error "${classificationReason}" thrown in diegosouzapw/OmniRoute.
Source
Thrown at open-sse/utils/streamReadiness.ts:580
handedOffReader = true;
return { ok: true, response: buildReadyResponse() };
}
const classificationReason = "Stream ended before producing a non-ping SSE event";
const upstreamDiagnostic = readinessState.upstreamDiagnostic || undefined;
const reason = upstreamDiagnostic
? `${classificationReason}: ${upstreamDiagnostic}`
: classificationReason;
options.log?.warn?.(
"STREAM",
`${reason} (${options.provider || "provider"}/${options.model || "unknown"})`
);
return {
ok: false,
reason,
classificationReason,
...(upstreamDiagnostic ? { upstreamDiagnostic } : {}),
code: "STREAM_EARLY_EOF",
type: "stream_early_eof",
response: createErrorResponse(
HTTP_STATUS.BAD_GATEWAY,
classificationReason,
"STREAM_EARLY_EOF",
"stream_early_eof",
upstreamDiagnostic
),
};
}
if (!readResult.value) continue;
chunks.push(readResult.value);
const decodedChunk = decoder.decode(readResult.value, { stream: true });
if (appendStreamReadinessSignal(readinessState, decodedChunk)) {
options.log?.debug?.(
"STREAM",View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at open-sse/utils/streamReadiness.ts:580 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/9386988a99808b9a.
Report an issue: GitHub.