{"record":{"id":"2d87f116e33027c3","repo":"diegosouzapw/OmniRoute","slug":"video-exceeds-the-maximum-size","errorCode":null,"errorMessage":"Video exceeds the maximum size","messagePattern":"Video exceeds the maximum size","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/lib/guardrails/videoBridgeHelpers.ts","lineNumber":526,"sourceCode":"  } else {\n    if (!part.ref.startsWith(\"https://\")) {\n      throw new Error(\"Video Bridge accepts only HTTPS URLs or video data URIs\");\n    }\n    const fetchRemote =\n      deps.fetchRemote ??\n      ((url: string, options: { enforceHttps: true; signal: AbortSignal }) =>\n        fetchRemoteMedia(url, {\n          enforceHttps: options.enforceHttps,\n          guard: \"public-only\",\n          maxBytes,\n          pinDns: true,\n          signal: options.signal,\n          timeoutMs,\n        }));\n    bytes = (await fetchRemote(part.ref, { enforceHttps: true, signal })).buffer;\n  }\n  if (bytes.byteLength > maxBytes) {\n    throw new Error(\"Video exceeds the maximum size\");\n  }\n  return bytes;\n}\n\nexport function formatVideoTimestamp(timestampSeconds: number): string {\n  const totalMilliseconds = Math.max(0, Math.round(timestampSeconds * 1000));\n  const minutes = Math.floor(totalMilliseconds / 60_000);\n  const seconds = Math.floor((totalMilliseconds % 60_000) / 1000);\n  const milliseconds = totalMilliseconds % 1000;\n  return `${String(minutes).padStart(2, \"0\")}:${String(seconds).padStart(2, \"0\")}.${String(milliseconds).padStart(3, \"0\")}`;\n}\n\n/** Compose the per-frame instruction while keeping user task context and media in separate lanes. */\nexport function composeVideoFramePrompt(\n  basePrompt: string,\n  timestampSeconds: number,\n  focusHint?: string\n): string {","sourceCodeStart":508,"sourceCodeEnd":544,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/guardrails/videoBridgeHelpers.ts#L508-L544","documentation":"Error \"Video exceeds the maximum size\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/guardrails/videoBridgeHelpers.ts:526 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}