diegosouzapw/OmniRoute · error · CodexResetCreditError
connection_id_required
connection_id_required
Error message
connectionId is required.
What it means
Error "connectionId is required." thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/lib/usage/codexResetCredits.ts:432
refreshedCreditsResponse.status,
"codex_reset_credit_upstream_error",
`Codex reset-credit API returned HTTP ${refreshedCreditsResponse.status}.`
);
}
const refreshedCredit = selectResetCredit(refreshedCreditsPayload, requestedCreditId);
response = await postConsumeResetCredit(
refreshedConnection,
idempotencyKey,
refreshedCredit.id
);
}
return { connection: refreshedConnection, response };
}
export async function listCodexResetCredits(connectionId: string): Promise<CodexResetCreditList> {
if (!connectionId || typeof connectionId !== "string") {
throw new CodexResetCreditError(400, "connection_id_required", "connectionId is required.");
}
try {
let connection = await loadCodexConnection(connectionId);
connection = await refreshCodexConnectionIfNeeded(connection);
let response = await fetchResetCredits(connection);
if (response.status === 401 || response.status === 403) {
connection = await refreshCodexConnectionIfNeeded(connection, true);
response = await fetchResetCredits(connection);
}
const payload = await readResponsePayload(response);
if (!response.ok) {
throwKnownConsumeError(payload);
throw new CodexResetCreditError(
response.status,
"codex_reset_credit_upstream_error",View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/lib/usage/codexResetCredits.ts:432 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/3bd35d469dd712df.
Report an issue: GitHub.