diegosouzapw/OmniRoute · error · Error
ChatGPT Cookie is missing
Error message
ChatGPT Cookie is missing
What it means
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.
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
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at open-sse/executors/chatgpt-web-codex/credentials.ts:45 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/5dda4287b0278abe.
Report an issue: GitHub.
Appendix: source
Thrown at open-sse/executors/chatgpt-web-codex/credentials.ts:45
const trimmed = value.trim();
if (!trimmed) throw new Error("ChatGPT Web (Codex) credentials are missing");
try {
const parsed = JSON.parse(trimmed) as Record<string, unknown>;
if (
parsed.version === VERSION &&
parsed.storageState &&
typeof parsed.storageState === "object"
) {
return {
storageState: parsed.storageState as Record<string, unknown>,
...(typeof parsed.runtimeKey === "string" && parsed.runtimeKey.trim()
? { runtimeKey: parsed.runtimeKey.trim() }
: {}),
};
}
if ((parsed.version === VERSION || parsed.version === 1) && typeof parsed.cookie === "string") {
const cookie = normalizedCookie(parsed.cookie);
if (!cookie) throw new Error("ChatGPT Cookie is missing");
return {
cookie,
...(typeof parsed.runtimeKey === "string" && parsed.runtimeKey.trim()
? { runtimeKey: parsed.runtimeKey.trim() }
: {}),
};
}
} catch (error) {
if (error instanceof SyntaxError) return { cookie: normalizedCookie(trimmed) };
throw error;
}
return { cookie: normalizedCookie(trimmed) };
}
View on GitHub (pinned to a179ffed5b)