diegosouzapw/OmniRoute · error
Missing required field: code
Error message
Missing required field: code
What it means
Error "Missing required field: code" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/lib/skills/builtins.ts:439
};
},
eval_code: async (input, context) => {
const {
code,
language = "javascript",
image,
timeoutMs,
networkEnabled,
} = input as {
code: string;
language?: string;
image?: string;
timeoutMs?: number;
networkEnabled?: boolean;
};
if (!code || typeof code !== "string") {
throw new Error("Missing required field: code");
}
const normalizedLanguage = language.toLowerCase();
let selectedImage: string;
let command: string[];
if (normalizedLanguage === "javascript" || normalizedLanguage === "js") {
selectedImage = normalizeImage(image, DEFAULT_JS_IMAGE);
command = ["node", "--eval", code];
} else if (normalizedLanguage === "python" || normalizedLanguage === "py") {
selectedImage = normalizeImage(image, DEFAULT_PYTHON_IMAGE);
command = ["python", "-c", code];
} else {
throw new Error(`Unsupported code language: ${language}`);
}
const result = await sandboxRunner.run(
selectedImage,
command,View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/lib/skills/builtins.ts:439 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/fef141e5e7efb16c.
Report an issue: GitHub.