diegosouzapw/OmniRoute · error · VideoDrilldownAbortedError

Video drilldown request was aborted

Error message

Video drilldown request was aborted

What it means

Abort sentinel thrown by throwIfAborted in the drilldown module whenever the request signal is already fired at a checkpoint inside decodeCanonicalJpeg, validateFrames, buildDerivationMetadata, or put. It converts the caller's cancellation into a single consistent error so long-running drilldown work stops between steps.

Solutions

  1. Treat as expected cancellation: abort downstream storage writes
  2. Check whether the timeout budget is too tight for large frame sets
  3. Avoid queuing new drilldown work after the signal fires
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at src/lib/guardrails/videoBridgeDrilldown.ts:113 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/d9565cf5e5d6d704. Report an issue: GitHub.

Appendix: source

Thrown at src/lib/guardrails/videoBridgeDrilldown.ts:113

  height: number;
  timestampSeconds: number;
  width: number;
}

export const VIDEO_DRILLDOWN_MAX_FRAME_BYTES = 4 * 1024 * 1024;
export const VIDEO_DRILLDOWN_MAX_ENTRY_BYTES = 32 * 1024 * 1024;
const MAX_DURATION_SECONDS = 600;
const MAX_FRAME_DIMENSION = 8192;
const JPEG_DATA_URI_PREFIX = "data:image/jpeg;base64,";
export const VIDEO_DRILLDOWN_MAX_FRAME_DATA_URI_CHARS =
  JPEG_DATA_URI_PREFIX.length + Math.ceil(VIDEO_DRILLDOWN_MAX_FRAME_BYTES / 3) * 4;

function validationFailure(message: string): never {
  throw new VideoDrilldownValidationError(message);
}

function throwIfAborted(signal?: AbortSignal): void {
  if (signal?.aborted) throw new VideoDrilldownAbortedError();
}

function yieldToEventLoop(): Promise<void> {
  return new Promise((resolve) => setImmediate(resolve));
}

function isAsciiAlphaNumeric(code: number): boolean {
  return (
    (code >= 0x30 && code <= 0x39) ||
    (code >= 0x41 && code <= 0x5a) ||
    (code >= 0x61 && code <= 0x7a)
  );
}

function isDerivationToken(value: string): boolean {
  if (value.length < 1 || value.length > 64 || !isAsciiAlphaNumeric(value.charCodeAt(0))) {
    return false;
  }

View on GitHub (pinned to a179ffed5b)