{"record":{"id":"19f4675f36548785","repo":"diegosouzapw/OmniRoute","slug":"unsupported-code-language-language","errorCode":null,"errorMessage":"Unsupported code language: ${language}","messagePattern":"Unsupported code language: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/lib/skills/builtins.ts","lineNumber":452,"sourceCode":"      image?: string;\n      timeoutMs?: number;\n      networkEnabled?: boolean;\n    };\n    if (!code || typeof code !== \"string\") {\n      throw new Error(\"Missing required field: code\");\n    }\n\n    const normalizedLanguage = language.toLowerCase();\n    let selectedImage: string;\n    let command: string[];\n    if (normalizedLanguage === \"javascript\" || normalizedLanguage === \"js\") {\n      selectedImage = normalizeImage(image, DEFAULT_JS_IMAGE);\n      command = [\"node\", \"--eval\", code];\n    } else if (normalizedLanguage === \"python\" || normalizedLanguage === \"py\") {\n      selectedImage = normalizeImage(image, DEFAULT_PYTHON_IMAGE);\n      command = [\"python\", \"-c\", code];\n    } else {\n      throw new Error(`Unsupported code language: ${language}`);\n    }\n\n    const result = await sandboxRunner.run(\n      selectedImage,\n      command,\n      {},\n      sandboxConfig({ timeoutMs, networkEnabled })\n    );\n    const stdout = truncateOutput(result.stdout);\n    const stderr = truncateOutput(result.stderr);\n    return {\n      success: result.exitCode === 0,\n      language: normalizedLanguage,\n      image: selectedImage,\n      exitCode: result.exitCode,\n      stdout: stdout.value,\n      stderr: stderr.value,\n      output: stdout.value,","sourceCodeStart":434,"sourceCodeEnd":470,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/skills/builtins.ts#L434-L470","documentation":"Language allow-list guard in eval_code: after lowercasing, the requested `language` matched neither javascript/js nor python/py (the only runtimes with preselected sandbox images and commands). Any other language string — or a typo — is rejected before a container image is chosen.","triggerScenarios":"Thrown at src/lib/skills/builtins.ts:452 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use language \"javascript\" (or \"js\") or \"python\" (or \"py\")","For other runtimes, use execute_command with a suitable sandbox image instead"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}