diegosouzapw/OmniRoute · error
Bifrost sidecar timed out after ${config.timeoutMs}ms
Error message
Bifrost sidecar timed out after ${config.timeoutMs}ms What it means
Error "Bifrost sidecar timed out after ${config.timeoutMs}ms" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/app/api/v1/relay/chat/completions/route.ts:191
recordUsage(
token.id,
request,
startTime,
clientIp,
userAgent,
// upstream.ok is guaranteed true here (the !upstream.ok branch above returns early).
"success",
upstream.status
);
return new Response(upstream.body, {
status: upstream.status,
headers,
});
} catch (error) {
clearTimeout(tid);
const isAbort = error instanceof Error && error.name === "AbortError";
throw new Error(
isAbort
? `Bifrost sidecar timed out after ${config.timeoutMs}ms`
: `Bifrost sidecar unreachable: ${error instanceof Error ? error.message : String(error)}`
);
}
}
export async function OPTIONS() {
return handleCorsOptions();
}
async function postHandler(request: Request) {
const startTime = Date.now();
const clientIp = getClientIp(request);
const userAgent = sanitizeForensicHeader(request.headers.get("user-agent"));
try {
// 1. AuthenticateView on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/app/api/v1/relay/chat/completions/route.ts:191 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/287b0c5acd69acc0.
Report an issue: GitHub.