{"record":{"id":"5dda4287b0278abe","repo":"diegosouzapw/OmniRoute","slug":"chatgpt-cookie-is-missing","errorCode":null,"errorMessage":"ChatGPT Cookie is missing","messagePattern":"ChatGPT Cookie is missing","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"open-sse/executors/chatgpt-web-codex/credentials.ts","lineNumber":45,"sourceCode":"  const trimmed = value.trim();\n  if (!trimmed) throw new Error(\"ChatGPT Web (Codex) credentials are missing\");\n  try {\n    const parsed = JSON.parse(trimmed) as Record<string, unknown>;\n    if (\n      parsed.version === VERSION &&\n      parsed.storageState &&\n      typeof parsed.storageState === \"object\"\n    ) {\n      return {\n        storageState: parsed.storageState as Record<string, unknown>,\n        ...(typeof parsed.runtimeKey === \"string\" && parsed.runtimeKey.trim()\n          ? { runtimeKey: parsed.runtimeKey.trim() }\n          : {}),\n      };\n    }\n    if ((parsed.version === VERSION || parsed.version === 1) && typeof parsed.cookie === \"string\") {\n      const cookie = normalizedCookie(parsed.cookie);\n      if (!cookie) throw new Error(\"ChatGPT Cookie is missing\");\n      return {\n        cookie,\n        ...(typeof parsed.runtimeKey === \"string\" && parsed.runtimeKey.trim()\n          ? { runtimeKey: parsed.runtimeKey.trim() }\n          : {}),\n      };\n    }\n  } catch (error) {\n    if (error instanceof SyntaxError) return { cookie: normalizedCookie(trimmed) };\n    throw error;\n  }\n  return { cookie: normalizedCookie(trimmed) };\n}\n","sourceCodeStart":27,"sourceCodeEnd":59,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/chatgpt-web-codex/credentials.ts#L27-L59","documentation":"Error \"ChatGPT Cookie is missing\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at open-sse/executors/chatgpt-web-codex/credentials.ts:45 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"}