{"record":{"id":"683ca16b142c7d74","repo":"diegosouzapw/OmniRoute","slug":"video-artifact-content-type-invalid","errorCode":"VIDEO_ARTIFACT_CONTENT_TYPE_INVALID","errorMessage":"Video artifact returned an unsupported content type","messagePattern":"Video artifact returned an unsupported content type","errorType":"error_code","errorClass":"VeoArtifactError","httpStatus":502,"severity":"error","filePath":"open-sse/executors/veoaifree-web.ts","lineNumber":576,"sourceCode":"        502,\n        { retryable: true }\n      );\n    }\n\n    if (!response.ok) {\n      throw new VeoArtifactError(\n        \"VIDEO_ARTIFACT_DOWNLOAD_FAILED\",\n        `Video artifact download failed (${response.status})`,\n        502\n      );\n    }\n\n    const contentType = (response.headers.get(\"content-type\") || \"\")\n      .split(\";\")[0]\n      .trim()\n      .toLowerCase();\n    if (contentType !== \"video/mp4\" && contentType !== \"application/octet-stream\") {\n      throw new VeoArtifactError(\n        \"VIDEO_ARTIFACT_CONTENT_TYPE_INVALID\",\n        \"Video artifact returned an unsupported content type\",\n        502\n      );\n    }\n\n    const buffer = await readCappedBuffer(response, ARTIFACT_MAX_BYTES);\n    validateMp4Buffer(buffer);\n    return buffer;\n  }\n\n  throw new VeoArtifactError(\n    \"VIDEO_ARTIFACT_DOWNLOAD_FAILED\",\n    \"Video artifact exceeded the redirect limit\",\n    502\n  );\n}\n","sourceCodeStart":558,"sourceCodeEnd":594,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/veoaifree-web.ts#L558-L594","documentation":"Error \"Video artifact returned an unsupported content type\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at open-sse/executors/veoaifree-web.ts:576 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"}