{"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":"Decoding guard in decodeChatGptWebCodexSecrets: the stored blob parsed but contains no usable cookie. The v2 JSON payload lacks both a valid storageState and a cookie string, so the credential exists but has no authenticating material — typically a legacy or partially-written secret.","triggerScenarios":"Thrown at open-sse/executors/chatgpt-web-codex/credentials.ts:45 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-enter the ChatGPT cookie on the connection and save to re-encode a valid blob","If the credential predates the v2 format, re-create it via the current UI flow","Run the provider validation flow to regenerate a storageState-based credential"],"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"}