diegosouzapw/OmniRoute · error
Video exceeds the maximum size
Error message
Video exceeds the maximum size
What it means
Error "Video exceeds the maximum size" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/lib/guardrails/videoBridgeHelpers.ts:526
} else {
if (!part.ref.startsWith("https://")) {
throw new Error("Video Bridge accepts only HTTPS URLs or video data URIs");
}
const fetchRemote =
deps.fetchRemote ??
((url: string, options: { enforceHttps: true; signal: AbortSignal }) =>
fetchRemoteMedia(url, {
enforceHttps: options.enforceHttps,
guard: "public-only",
maxBytes,
pinDns: true,
signal: options.signal,
timeoutMs,
}));
bytes = (await fetchRemote(part.ref, { enforceHttps: true, signal })).buffer;
}
if (bytes.byteLength > maxBytes) {
throw new Error("Video exceeds the maximum size");
}
return bytes;
}
export function formatVideoTimestamp(timestampSeconds: number): string {
const totalMilliseconds = Math.max(0, Math.round(timestampSeconds * 1000));
const minutes = Math.floor(totalMilliseconds / 60_000);
const seconds = Math.floor((totalMilliseconds % 60_000) / 1000);
const milliseconds = totalMilliseconds % 1000;
return `${String(minutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}.${String(milliseconds).padStart(3, "0")}`;
}
/** Compose the per-frame instruction while keeping user task context and media in separate lanes. */
export function composeVideoFramePrompt(
basePrompt: string,
timestampSeconds: number,
focusHint?: string
): string {View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/lib/guardrails/videoBridgeHelpers.ts:526 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/2d87f116e33027c3.
Report an issue: GitHub.