diegosouzapw/OmniRoute · error
HTTP_504
HTTP_504
Error message
Cloudflare Playground timed out
What it means
Error "Cloudflare Playground timed out" thrown in diegosouzapw/OmniRoute.
Source
Thrown at open-sse/executors/cloudflare-playground.ts:559
}
} catch (error) {
if (!signal?.aborted) controller.error(error);
} finally {
clearTimeout(timer);
await transport.close().catch(() => {});
// #10494: a timeout used to fall straight through to a bare
// [DONE], so a client receiving an empty or partial stream saw
// an ordinary successful completion. Emit an explicit error
// chunk first (same shape as the parser.error branch above) so
// the client can distinguish a timed-out/partial answer from a
// real completion.
if (timedOut.current) {
try {
enqueue({
error: {
message: "Cloudflare Playground timed out",
type: "timeout_error",
code: "HTTP_504",
},
});
} catch {
/* stream already torn down */
}
}
controller.enqueue(encoder.encode("data: [DONE]\n\n"));
controller.close();
}
},
});
return {
response: new Response(responseStream, {
headers: {
"Content-Type": "text/event-stream",
"Cache-Control": "no-cache",
Connection: "keep-alive",View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at open-sse/executors/cloudflare-playground.ts:559 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Timeouts: ETIMEDOUT, deadlines, and hung requests — what actually expires when a request times out.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/c141c5acdc8efd6f.
Report an issue: GitHub.