{"record":{"id":"7da198ce14b6a375","repo":"diegosouzapw/OmniRoute","slug":"video-artifact-url-invalid","errorCode":"VIDEO_ARTIFACT_URL_INVALID","errorMessage":"Video artifact URL is invalid","messagePattern":"Video artifact URL is invalid","errorType":"error_code","errorClass":"VeoArtifactError","httpStatus":502,"severity":"error","filePath":"open-sse/executors/veoaifree-web.ts","lineNumber":378,"sourceCode":"): Promise<Response> {\n  const result = await postAjax(context, nonce, {\n    prompt,\n    actionType: \"main-prompt-generation\",\n  });\n  const trimmed = result.trim();\n  if (!trimmed || trimmed === \"0\") {\n    return errResp(\"Prompt enhancement failed\");\n  }\n  return jsonResp({ object: \"prompt.enhancement\", enhanced: trimmed, status: \"completed\" });\n}\n\nfunction validateArtifactUrl(input: string): URL {\n  let url: URL;\n  try {\n    url = parseAndValidatePublicUrl(input);\n  } catch (error) {\n    if (error instanceof OutboundUrlGuardError) {\n      throw new VeoArtifactError(\n        error.code === \"OUTBOUND_URL_INVALID\"\n          ? \"VIDEO_ARTIFACT_URL_INVALID\"\n          : \"VIDEO_ARTIFACT_URL_BLOCKED\",\n        error.code === \"OUTBOUND_URL_INVALID\"\n          ? \"Video artifact URL is invalid\"\n          : \"Video artifact URL is blocked\",\n        502\n      );\n    }\n    throw new VeoArtifactError(\"VIDEO_ARTIFACT_URL_INVALID\", \"Video artifact URL is invalid\", 502);\n  }\n\n  if (url.protocol !== \"https:\") {\n    throw new VeoArtifactError(\n      \"VIDEO_ARTIFACT_URL_INVALID\",\n      \"Video artifact URL must use HTTPS\",\n      502\n    );","sourceCodeStart":360,"sourceCodeEnd":396,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/veoaifree-web.ts#L360-L396","documentation":"Error \"Video artifact URL is invalid\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at open-sse/executors/veoaifree-web.ts:378 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"}