Skip to content

improper 429 error near the end of a 5-hour window, when I still had plenty of usage left #9135

Description

@dimfeld

What version of Codex is running?

custom build, slightly modified from 0.80 tag

What subscription do you have?

ChatGPT Pro

Which model were you using?

gpt-5.2-codex

What platform is your computer?

MacOS 26.2

What issue are you seeing?

I was coming up on the end of a 5-hour window, and suddenly Codex gave me 429 rate limit errors. The usage display inside Codex and also on the ChatGPT website both said I had about 61% usage remaining in my 5-hour window, which felt about right given my usage patterns for the past 5 hours.

Every time I tried a command, the "retry after" was about 60 seconds.

This issue lasted about 15 minutes, starting around 11:30 PM PST January 12, until the 5-hour window reset and things started working again.

What steps can reproduce the bug?

I don't think it will help much but here's one sample output from when it was failing.

~/Doc/cc/code3 ❯ codex exec test
OpenAI Codex v0.0.0 (research preview)
--------
workdir: /Users/dimfeld/Documents/cc/code3
model: gpt-5.2-codex
provider: openai
approval: never
sandbox: workspace-write [workdir, /tmp, $TMPDIR, /Users/dimfeld/.config/rmplan, /Users/dimfeld/.pyenv/shims, /Users/dimfeld/Library/pnpm, /Users/dimfeld/.config/chisel/logs, /Users/dimfeld/.locals/share/chisel, /Users/dimfeld/.cache, /Users/dimfeld/.semgrep] (network access enabled)
reasoning effort: medium
reasoning summaries: auto
session id: 019bb64c-b94f-7c61-98a1-61db54ac2c20
--------
user
test
mcp: rmplan starting
mcp: rmplan ready
mcp startup: ready: rmplan
2026-01-13T07:40:41.747414Z ERROR codex_api::endpoint::responses: error=http 429 Too Many Requests: Some("{\n  \"error\": {\n    \"message\": \"You've exceeded the rate limit, please slow down and try again after 60.616292 seconds.\",\n    \"type\": \"invalid_request_error\",\n    \"param\": null,\n    \"code\": \"rate_limit_exceeded\"\n  }\n}")
ERROR: exceeded retry limit, last status: 429 Too Many Requests, request id: 9bd33f31fd269bb1-HNL

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrate-limitsIssues related to rate limits, quotas, and token usage reporting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions