diegosouzapw/OmniRoute · error
Sandbox image is not allowed
Error message
Sandbox image is not allowed: ${selected} What it means
Sandbox allow-list guard in normalizeImage: when a skill request supplies a custom container `image` string, it is checked against the permitted image set; `selected` (the requested image after normalization) is not on the list, so execution is refused before any container starts. Prevents arbitrary image pulls from the skill input.
Solutions
- Omit the image field to use the default sandbox image for that language/command
- Request allow-listing of the image in the server's sandbox configuration
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/lib/skills/builtins.ts:164 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/13903b8d36a43ba1.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/skills/builtins.ts:164
}
function normalizeBody(body: unknown, headers?: Record<string, string>) {
if (body === undefined || body === null) return undefined;
if (typeof body === "string") return body;
if (body instanceof Uint8Array) return new Uint8Array(body);
if (typeof body === "object") {
if (headers && !Object.keys(headers).some((key) => key.toLowerCase() === "content-type")) {
headers["Content-Type"] = "application/json";
}
return JSON.stringify(body);
}
return String(body);
}
function normalizeImage(image: unknown, fallback: string) {
const selected = typeof image === "string" && image.trim() ? image.trim() : fallback;
if (!ALLOWED_SANDBOX_IMAGES.has(selected)) {
throw new Error(`Sandbox image is not allowed: ${selected}`);
}
return selected;
}
function sandboxConfig(input: {
timeoutMs?: unknown;
networkEnabled?: unknown;
}): Partial<SandboxConfig> {
const requestedNetwork = input.networkEnabled === true;
return {
timeout: normalizePositiveInteger(input.timeoutMs, DEFAULT_SANDBOX_TIMEOUT_MS, 60_000),
networkEnabled: requestedNetwork && SANDBOX_NETWORK_ENABLED,
readOnly: true,
};
}
function truncateOutput(value: string) {
if (value.length <= MAX_SANDBOX_OUTPUT_CHARS) return { value, truncated: false };View on GitHub (pinned to a179ffed5b)