{"record":{"id":"09c836eef2516064","repo":"diegosouzapw/OmniRoute","slug":"video-artifact-not-ready","errorCode":"VIDEO_ARTIFACT_NOT_READY","errorMessage":"Video artifact is not available yet","messagePattern":"Video artifact is not available yet","errorType":"error_code","errorClass":"VeoArtifactError","httpStatus":502,"severity":"error","filePath":"open-sse/executors/veoaifree-web.ts","lineNumber":555,"sourceCode":"          \"VIDEO_ARTIFACT_DOWNLOAD_FAILED\",\n          \"Video artifact exceeded the redirect limit\",\n          502\n        );\n      }\n      try {\n        currentUrl = new URL(location, parsedUrl.toString()).toString();\n      } catch {\n        throw new VeoArtifactError(\n          \"VIDEO_ARTIFACT_URL_INVALID\",\n          \"Video artifact redirect destination is invalid\",\n          502\n        );\n      }\n      continue;\n    }\n\n    if (RETRYABLE_ARTIFACT_STATUSES.has(response.status)) {\n      throw new VeoArtifactError(\n        response.status === 202 ? \"VIDEO_ARTIFACT_NOT_READY\" : \"VIDEO_ARTIFACT_UNAVAILABLE\",\n        \"Video artifact is not available yet\",\n        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()","sourceCodeStart":537,"sourceCodeEnd":573,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/veoaifree-web.ts#L537-L573","documentation":"downloadArtifactOnce got HTTP 202 (or another retryable status) from the artifact URL: Veo is still rendering the video and it is not ready yet. VeoArtifactError VIDEO_ARTIFACT_NOT_READY is marked retryable so downloadArtifactWithAvailabilityWindow polls again.","triggerScenarios":"Thrown at open-sse/executors/veoaifree-web.ts:555 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Keep polling within ARTIFACT_READY_MAX_ATTEMPTS and the retry interval","Honor the client's abort signal between attempts","If the window expires, tell the client generation is still pending"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}