diegosouzapw/OmniRoute · error · CodexResetCreditError
connection_not_found
connection_not_found
Error message
Connection not found.
What it means
Error "Connection not found." thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/lib/usage/codexResetCredits.ts:319
if (workspaceId) headers["chatgpt-account-id"] = workspaceId;
return headers;
}
async function loadCodexConnection(connectionId: string): Promise<CodexConnectionLike> {
if (await isConnectionUnavailableToAuxiliaryActivity(connectionId)) {
throw new CodexResetCreditError(
409,
"exclusive_lease_active",
"Reset-credit operations are deferred while an exclusive lease is active."
);
}
const connection = (await getProviderConnectionById(
connectionId
)) as unknown as CodexConnectionLike | null;
if (!connection) {
throw new CodexResetCreditError(404, "connection_not_found", "Connection not found.");
}
if (connection.provider !== "codex") {
throw new CodexResetCreditError(
400,
"codex_provider_required",
"Reset credits can only be redeemed for OpenAI Codex accounts."
);
}
if (connection.authType !== "oauth") {
throw new CodexResetCreditError(
400,
"codex_oauth_required",
"Codex reset credits require an OAuth connection."
);
}
View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/lib/usage/codexResetCredits.ts:319 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/885c90e34d884183.
Report an issue: GitHub.