{"record":{"id":"cbd63b0cebbc6df9","repo":"diegosouzapw/OmniRoute","slug":"video-artifact-too-large","errorCode":"VIDEO_ARTIFACT_TOO_LARGE","errorMessage":"Video artifact exceeds the maximum supported size","messagePattern":"Video artifact exceeds the maximum supported size","errorType":"error_code","errorClass":"VeoArtifactError","httpStatus":502,"severity":"error","filePath":"open-sse/executors/veoaifree-web.ts","lineNumber":450,"sourceCode":"    );\n  }\n\n  for (const { address } of resolved) {\n    if (isPrivateHost(address)) {\n      throw new VeoArtifactError(\n        \"VIDEO_ARTIFACT_URL_BLOCKED\",\n        \"Video artifact host resolves to a blocked address\",\n        502\n      );\n    }\n  }\n}\n\nasync function readCappedBuffer(response: Response, maxBytes: number): Promise<Buffer> {\n  const contentLengthHeader = response.headers.get(\"content-length\");\n  const contentLength = contentLengthHeader ? Number.parseInt(contentLengthHeader, 10) : null;\n  if (contentLength !== null && Number.isFinite(contentLength) && contentLength > maxBytes) {\n    throw new VeoArtifactError(\n      \"VIDEO_ARTIFACT_TOO_LARGE\",\n      \"Video artifact exceeds the maximum supported size\",\n      502\n    );\n  }\n\n  if (!response.body) {\n    const buffer = Buffer.from(await response.arrayBuffer());\n    if (buffer.byteLength > maxBytes) {\n      throw new VeoArtifactError(\n        \"VIDEO_ARTIFACT_TOO_LARGE\",\n        \"Video artifact exceeds the maximum supported size\",\n        502\n      );\n    }\n    return buffer;\n  }\n","sourceCodeStart":432,"sourceCodeEnd":468,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/veoaifree-web.ts#L432-L468","documentation":"Error \"Video artifact exceeds the maximum supported size\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at open-sse/executors/veoaifree-web.ts:450 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"}