diegosouzapw/OmniRoute · error · Error
ChatGPT Cookie is missing
Error message
ChatGPT Cookie is missing
What it means
Error "ChatGPT Cookie is missing" thrown in diegosouzapw/OmniRoute.
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)
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.