diegosouzapw/OmniRoute · error · Error

Video extraction request aborted

Error message

Video extraction request aborted

What it means

The AbortSignal passed to the video extraction flow was aborted (caller cancelled or a timeout fired) and the pre-flight check in the extraction entry point surfaced it as this stable error instead of letting a generic AbortError escape.

Solutions

  1. Propagate the abort to cleanup of any partially written frame files
  2. Distinguish AbortError in the caller and return a client-closed response instead of a 5xx
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at src/lib/guardrails/videoBridgeRuntime.ts:858 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/267f02586b086529. Report an issue: GitHub.

Appendix: source

Thrown at src/lib/guardrails/videoBridgeRuntime.ts:858

        structuralAnalysis = await analyzeVideoStructure(inputPath, {
          durationSeconds: options.durationSeconds,
          runner: options.runner,
          signal: options.signal,
          streamIndex: options.streamIndex,
          timeoutMs: Math.min(options.timeoutMs ?? 30_000, 30_000),
        });
        sceneCandidates = structuralAnalysis.sceneCandidates;
      } else {
        sceneCandidates = await detectSceneChangeTimestamps(inputPath, {
          durationSeconds: options.durationSeconds,
          runner: options.runner,
          signal: options.signal,
          streamIndex: options.streamIndex,
          timeoutMs: Math.min(options.timeoutMs ?? 30_000, 30_000),
        });
      }
    } catch {
      if (options.signal?.aborted) throw new Error("Video extraction request aborted");
      sceneCandidates = [];
      structuralAnalysis = null;
    }
  }
  const focusWindow = options.focusWindow
    ? resolveVideoFocusWindow(options.durationSeconds, options.focusWindow)
    : null;
  const sampling = calculateSamplingDecision(
    options.durationSeconds,
    options.frameCount,
    policy,
    sceneCandidates,
    focusWindow,
    structuralAnalysis
  );
  if (!Number.isInteger(options.streamIndex) || options.streamIndex < 0) {
    throw new Error("Video stream index is invalid");
  }

View on GitHub (pinned to a179ffed5b)