{"record":{"id":"d9e453d5965791e5","repo":"diegosouzapw/OmniRoute","slug":"chatgpt-browser-validation-does-not-match-the-supp","errorCode":null,"errorMessage":"ChatGPT browser validation does not match the supplied Cookie","messagePattern":"ChatGPT browser validation does not match the supplied Cookie","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"open-sse/executors/chatgpt-web-codex/storageState.ts","lineNumber":174,"sourceCode":"  encodedCredential: string,\n  validationId: string\n): { encodedCredential: string; storageState: Record<string, unknown> } {\n  const parsed = JSON.parse(encodedCredential) as Record<string, unknown>;\n  const rawCookie = typeof parsed.cookie === \"string\" ? cookieHeaderValue(parsed.cookie) : \"\";\n  if (!rawCookie) throw new Error(\"A fresh ChatGPT Cookie is required for browser validation\");\n  if (!/^validation-[a-f0-9]{24}$/.test(validationId)) {\n    throw new Error(\"ChatGPT browser validation reference is invalid\");\n  }\n  const paths = connectionRuntimePaths(validationId);\n  const markerPath = loginVerificationMarkerPath(paths.storageStatePath);\n  const marker = JSON.parse(readFileSync(markerPath, \"utf8\")) as Record<string, unknown>;\n  if (\n    marker.version !== 1 ||\n    marker.authenticated !== true ||\n    marker.pendingBrowserVerification === true ||\n    marker.cookieFingerprint !== cookieFingerprint(rawCookie)\n  ) {\n    throw new Error(\"ChatGPT browser validation does not match the supplied Cookie\");\n  }\n  const storageState = readConnectionStorageState(paths.storageStatePath);\n  const runtimeKey = typeof parsed.runtimeKey === \"string\" ? parsed.runtimeKey.trim() : \"\";\n  const next = JSON.stringify({\n    version: 2,\n    storageState,\n    ...(runtimeKey ? { runtimeKey } : {}),\n  });\n  rmSync(paths.root, { recursive: true, force: true });\n  return { encodedCredential: next, storageState };\n}\n","sourceCodeStart":156,"sourceCodeEnd":186,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/chatgpt-web-codex/storageState.ts#L156-L186","documentation":"Error \"ChatGPT browser validation does not match the supplied Cookie\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at open-sse/executors/chatgpt-web-codex/storageState.ts:174 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"}