{"record":{"id":"2ba367fcc9050bcf","repo":"diegosouzapw/OmniRoute","slug":"video-extraction-broker-is-unavailable","errorCode":null,"errorMessage":"Video extraction broker is unavailable","messagePattern":"Video extraction broker is unavailable","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/lib/guardrails/videoBridgeBrokerClient.ts","lineNumber":168,"sourceCode":"  }\n  const fetchImpl = dependencies.fetchImpl ?? fetchModelSyncInternal;\n  const timeoutSignal = AbortSignal.timeout(options.timeoutMs);\n  const signal = options.signal ? AbortSignal.any([options.signal, timeoutSignal]) : timeoutSignal;\n  let response: Response;\n  try {\n    response = await fetchImpl(url, {\n      method: \"POST\",\n      body: Buffer.from(bytes),\n      headers: {\n        \"Content-Type\": \"application/octet-stream\",\n        ...buildVideoBridgeBrokerHeaders(),\n      },\n      redirect: \"error\",\n      signal,\n    });\n  } catch {\n    if (signal.aborted) throw new Error(\"Video extraction request aborted\");\n    throw new Error(\"Video extraction broker is unavailable\");\n  }\n  if (!response.ok) {\n    throw new Error(`Video extraction broker failed (${response.status})`);\n  }\n  const maxResponseBytes = Math.min(\n    MAX_BROKER_RESPONSE_BYTES,\n    dependencies.maxResponseBytes ?? MAX_BROKER_RESPONSE_BYTES\n  );\n  return parseBrokerResult(\n    await readBoundedResponse(response, maxResponseBytes),\n    options.frameCount\n  );\n}\n","sourceCodeStart":150,"sourceCodeEnd":182,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/guardrails/videoBridgeBrokerClient.ts#L150-L182","documentation":"Thrown when the fetch to the video bridge broker throws for any reason other than the caller's abort (network failure, DNS, connection refused, TLS error). The catch block distinguishes abort (rethrows the abort sentinel) from genuine unavailability; this error means the broker endpoint itself could not be reached.","triggerScenarios":"Thrown at src/lib/guardrails/videoBridgeBrokerClient.ts:168 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Confirm the broker service is running and its URL/port is correct","Check network reachability and firewall rules between the proxy and the broker","Inspect buildVideoBridgeBrokerHeaders for missing auth that could cause connection rejection","Fall back to non-broker (local) frame extraction path"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}