{"record":{"id":"9081140402e22bc1","repo":"diegosouzapw/OmniRoute","slug":"video-artifact-signature-invalid","errorCode":"VIDEO_ARTIFACT_SIGNATURE_INVALID","errorMessage":"Video artifact is empty","messagePattern":"Video artifact is empty","errorType":"error_code","errorClass":"VeoArtifactError","httpStatus":502,"severity":"error","filePath":"open-sse/executors/veoaifree-web.ts","lineNumber":498,"sourceCode":"        await reader.cancel();\n        throw new VeoArtifactError(\n          \"VIDEO_ARTIFACT_TOO_LARGE\",\n          \"Video artifact exceeds the maximum supported size\",\n          502\n        );\n      }\n      chunks.push(chunk);\n    }\n  } finally {\n    reader.releaseLock();\n  }\n\n  return Buffer.concat(chunks, totalBytes);\n}\n\nfunction validateMp4Buffer(buffer: Buffer): void {\n  if (buffer.length <= 0) {\n    throw new VeoArtifactError(\"VIDEO_ARTIFACT_SIGNATURE_INVALID\", \"Video artifact is empty\", 502);\n  }\n\n  if (buffer.length < 12 || buffer.toString(\"ascii\", 4, 8) !== \"ftyp\") {\n    throw new VeoArtifactError(\n      \"VIDEO_ARTIFACT_SIGNATURE_INVALID\",\n      \"Video artifact is not a valid MP4 file\",\n      502\n    );\n  }\n}\n\nasync function downloadArtifactOnce(\n  context: VeoSessionContext,\n  artifactUrl: string\n): Promise<Buffer> {\n  let currentUrl = artifactUrl;\n\n  for (let redirectCount = 0; redirectCount <= ARTIFACT_MAX_REDIRECTS; redirectCount++) {","sourceCodeStart":480,"sourceCodeEnd":516,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/veoaifree-web.ts#L480-L516","documentation":"Error \"Video artifact is empty\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at open-sse/executors/veoaifree-web.ts:498 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"}