diegosouzapw/OmniRoute · error
VIDEO_ARTIFACT_UNAVAILABLE
VIDEO_ARTIFACT_UNAVAILABLE
Error message
Veo AI Free did not return a valid MP4 artifact
What it means
Video generation response validation in videoGeneration.ts: the Veo AI Free upstream answered, but its payload is not exactly one data item containing a non-empty base64 MP4 (b64_json string, format 'mp4', no plain url). The 502 VIDEO_ARTIFACT_UNAVAILABLE error protects callers from receiving a corrupt or missing video artifact.
Solutions
- Retry the generation — upstream may have produced an empty/failed artifact
- Check upstream logs for the actual Veo response shape
- Reduce prompt complexity or duration constraints that may cause upstream failure
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at open-sse/handlers/videoGeneration.ts:431 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/043b585e9026e7b2.
Report an issue: GitHub.
Appendix: source
Thrown at open-sse/handlers/videoGeneration.ts:431
const item = Array.isArray(payload?.data) ? payload.data[0] : null;
if (
!payload ||
!Array.isArray(payload.data) ||
payload.data.length !== 1 ||
!item ||
typeof item.b64_json !== "string" ||
item.b64_json.trim().length === 0 ||
item.format !== "mp4" ||
typeof item.url === "string"
) {
return {
success: false,
status: 502,
error: {
error: {
message: "Veo AI Free did not return a valid MP4 artifact",
type: "upstream_error",
code: "VIDEO_ARTIFACT_UNAVAILABLE",
},
},
};
}
return {
success: true,
data: payload,
};
}
async function handleComfyUIVideoGeneration({ model, provider, providerConfig, body, log }) {
const startTime = Date.now();
const [width, height] = (body.size || "512x512").split("x").map(Number);
const frames = body.frames || 16;
// AnimateDiff workflow template
const workflow = {View on GitHub (pinned to a179ffed5b)