{"record":{"id":"ee9674550adbf0fe","repo":"diegosouzapw/OmniRoute","slug":"no-supported-chrome-or-chromium-executable-was-fou","errorCode":null,"errorMessage":"No supported Chrome or Chromium executable was found","messagePattern":"No supported Chrome or Chromium executable was found","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"open-sse/executors/chatgpt-web-codex.ts","lineNumber":156,"sourceCode":"  return (parsed.context.tools?.length ?? 0) > 0;\n}\n\nfunction buildProviderConfig(\n  input: ExecuteInput,\n  parsed: CodexParsedRequest,\n  storageStatePath: string,\n  connectionId: string\n): CodexProviderConfig {\n  const data = record(input.credentials.providerSpecificData);\n  const route = requireChatGptWebCodexRoute(input.model);\n  const paths = connectionRuntimePaths(connectionId);\n  const cdpEndpoint =\n    configuredString(data, \"browserCdpEndpoint\") ?? process.env.CHATGPT_WEB_CODEX_CDP_URL;\n  const chromeExecutablePath = detectChromeExecutable(\n    configuredString(data, \"chromeExecutablePath\")\n  );\n  if (!chromeExecutablePath && !cdpEndpoint) {\n    throw new Error(\"No supported Chrome or Chromium executable was found\");\n  }\n\n  const proAvailable = data.proAvailable === true;\n  if (route.pro && !proAvailable) {\n    throw new Error(\"ChatGPT Pro is not available for this connection\");\n  }\n\n  const hasTools = toolModeRequired(parsed);\n  const requiredChoice =\n    parsed.options.toolChoice === \"required\" || typeof parsed.options.toolChoice === \"object\";\n  if (route.pro && requiredChoice) {\n    throw new Error(\"ChatGPT Web Pro is read-only and cannot satisfy a required tool choice\");\n  }\n\n  const connector =\n    configuredString(data, \"connectorName\", \"appName\") ??\n    process.env.CHATGPT_WEB_CODEX_CONNECTOR_NAME?.trim();\n  if (!route.pro && hasTools && !connector) {","sourceCodeStart":138,"sourceCodeEnd":174,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/chatgpt-web-codex.ts#L138-L174","documentation":"Configuration guard in buildProviderConfig: neither a Chrome/Chromium executable nor a CDP endpoint is available. The executor drives a real browser via Playwright/CDP for ChatGPT Web; it probes chromeExecutablePath settings, CHATGPT_WEB_CODEX_CHROME_PATH/CHROME_PATH env vars, and common install paths, and also honors CHATGPT_WEB_CODEX_CDP_URL — all came up empty.","triggerScenarios":"Thrown at open-sse/executors/chatgpt-web-codex.ts:156 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install Google Chrome or Chromium on the host machine","Set CHATGPT_WEB_CODEX_CHROME_PATH (or CHROME_PATH) to the browser executable path","Point CHATGPT_WEB_CODEX_CDP_URL or the connection's browserCdpEndpoint at an already-running Chrome with remote debugging"],"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"}