diegosouzapw/OmniRoute · error
ABORTED
ABORTED
Error message
Request aborted
What it means
The executor's pre-flight abort guard: the incoming request's AbortSignal was already aborted before dispatch, so instead of calling the upstream it fabricates a synthetic 499 Response with error type 'abort' and code 'ABORTED'. This keeps the abort semantics visible to the SSE/JSON pipeline without a wasted upstream round-trip.
Solutions
- Resend if the cancellation was intentional cleanup
- If unexpected, trace which timeout or client cancelled the signal pre-dispatch
- Increase client-side timeouts for slow models
Defensive patterns
Strategy: type-guard
When it happens
Trigger: Thrown at open-sse/executors/theoldllm.ts:389 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/6999d05e99447a4c.
Report an issue: GitHub.
Appendix: source
Thrown at open-sse/executors/theoldllm.ts:389
return false;
}
}
async execute(input: ExecuteInput): Promise<{
response: Response;
url: string;
headers: Record<string, string>;
transformedBody: unknown;
}> {
const { model, stream, body, signal, log } = input;
const encoder = new TextEncoder();
if (signal?.aborted) {
return {
response: new Response(
encoder.encode(
JSON.stringify({
error: { message: "Request aborted", type: "abort", code: "ABORTED" },
})
),
{ status: 499, headers: { "Content-Type": "application/json" } }
),
url: API_URL,
headers: this.buildHeaders(input.credentials),
transformedBody: body,
};
}
try {
const reqBody = {
...(body as Record<string, unknown>),
model: mapModel(model),
stream: true,
};
const {View on GitHub (pinned to a179ffed5b)