diegosouzapw/OmniRoute · error · VeoArtifactError
VIDEO_ARTIFACT_URL_BLOCKED
VIDEO_ARTIFACT_URL_BLOCKED
Error message
Video artifact host resolves to a blocked address
What it means
assertHostnameResolvesPublic performed DNS/IP checks on the artifact host and found it resolves to a private/loopback address, so downloading is refused to prevent SSRF. The VeoArtifactError code is VIDEO_ARTIFACT_URL_BLOCKED and maps to HTTP 502 toward the client.
Solutions
- Never bypass the private-host check — it is a security boundary
- Report the upstream as compromised/misconfigured rather than retrying
- Alert if a previously legit artifact host starts resolving privately
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at open-sse/executors/veoaifree-web.ts:407 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/b95f65c12ff05c5a.
Report an issue: GitHub.
Appendix: source
Thrown at open-sse/executors/veoaifree-web.ts:407
}
if (url.protocol !== "https:") {
throw new VeoArtifactError(
"VIDEO_ARTIFACT_URL_INVALID",
"Video artifact URL must use HTTPS",
502
);
}
return url;
}
async function assertHostnameResolvesPublic(hostname: string): Promise<void> {
const bare =
hostname.startsWith("[") && hostname.endsWith("]") ? hostname.slice(1, -1) : hostname;
if (isIP(bare)) {
if (isPrivateHost(bare)) {
throw new VeoArtifactError(
"VIDEO_ARTIFACT_URL_BLOCKED",
"Video artifact host resolves to a blocked address",
502
);
}
return;
}
let resolved: Array<{ address: string }>;
try {
resolved = await dns.promises.lookup(bare, { all: true });
} catch {
throw new VeoArtifactError(
"VIDEO_ARTIFACT_DOWNLOAD_FAILED",
"Video artifact host could not be resolved",
502
);
}View on GitHub (pinned to a179ffed5b)