diegosouzapw/OmniRoute · error
Video extraction broker failed
Error message
Video extraction broker failed (${response.status}) What it means
Non-OK HTTP status from the video bridge broker: response.ok was false after a successful connection. The status code is embedded in the message (e.g. 500, 503, 413). This is a server-side failure of the extraction broker, not a transport or validation failure.
Solutions
- Read the embedded status code: 5xx suggests broker crash/overload, 4xx suggests oversized payload or bad request
- Retry with backoff for 502/503/504; reduce payload size for 413
- Check broker logs for the failing extraction
- Fall back to local frame extraction when the broker remains unhealthy
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at src/lib/guardrails/videoBridgeBrokerClient.ts:171 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/8dc9f087dba9d6aa.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/guardrails/videoBridgeBrokerClient.ts:171
const signal = options.signal ? AbortSignal.any([options.signal, timeoutSignal]) : timeoutSignal;
let response: Response;
try {
response = await fetchImpl(url, {
method: "POST",
body: Buffer.from(bytes),
headers: {
"Content-Type": "application/octet-stream",
...buildVideoBridgeBrokerHeaders(),
},
redirect: "error",
signal,
});
} catch {
if (signal.aborted) throw new Error("Video extraction request aborted");
throw new Error("Video extraction broker is unavailable");
}
if (!response.ok) {
throw new Error(`Video extraction broker failed (${response.status})`);
}
const maxResponseBytes = Math.min(
MAX_BROKER_RESPONSE_BYTES,
dependencies.maxResponseBytes ?? MAX_BROKER_RESPONSE_BYTES
);
return parseBrokerResult(
await readBoundedResponse(response, maxResponseBytes),
options.frameCount
);
}
View on GitHub (pinned to a179ffed5b)