{"record":{"id":"0b3c0e93fceac622","repo":"diegosouzapw/OmniRoute","slug":"chatgpt-pro-is-not-available-for-this-connection","errorCode":null,"errorMessage":"ChatGPT Pro is not available for this connection","messagePattern":"ChatGPT Pro is not available for this connection","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"open-sse/executors/chatgpt-web-codex.ts","lineNumber":161,"sourceCode":"  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) {\n    throw new Error(\"ChatGPT Web (Codex) tools require a ready tunnel and Custom Connector\");\n  }\n\n  parsed.modelId = \"gpt-5.6-sol\";\n  parsed.options.reasoning = route.effort;","sourceCodeStart":143,"sourceCodeEnd":179,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/chatgpt-web-codex.ts#L143-L179","documentation":"Error \"ChatGPT Pro is not available for this connection\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at open-sse/executors/chatgpt-web-codex.ts:161 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}