diegosouzapw/OmniRoute · error

Video extraction broker is unavailable

Error message

Video extraction broker is unavailable

What it means

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.

Solutions

  1. Confirm the broker service is running and its URL/port is correct
  2. Check network reachability and firewall rules between the proxy and the broker
  3. Inspect buildVideoBridgeBrokerHeaders for missing auth that could cause connection rejection
  4. Fall back to non-broker (local) frame extraction path
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src/lib/guardrails/videoBridgeBrokerClient.ts:168 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/2ba367fcc9050bcf. Report an issue: GitHub.

Appendix: source

Thrown at src/lib/guardrails/videoBridgeBrokerClient.ts:168

  }
  const fetchImpl = dependencies.fetchImpl ?? fetchModelSyncInternal;
  const timeoutSignal = AbortSignal.timeout(options.timeoutMs);
  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)