[Bug] Anthropic API Rate Limit Error Despite Available Quota
Resolved 💬 3 comments Opened Mar 8, 2026 by sammcj Closed Apr 6, 2026
Bug Description
"API Error: Rate limit reached" but I'm not anywhere near my limits
This seems to occur when Claude Code believes it needs to read in a PDF file:
⏺ Read 1 file (ctrl+o to expand)
⎿ API Error: Rate limit reached
And continues to error from that point on (despite the context only being at around 39% used)
The workaround was to rewind to before it tried to read the PDF and branch the conversation from there.
But it then occurs again when Claude Code tries to read another PDF:
⏺ Bash(uv run scripts/wisdom.py pdf /private/tmp/claude/test-diagrams.md /private/tmp/claude/test-sizing.pdf 2>&1)
⎿ PDF_PATH: /private/tmp/claude/test-sizing.pdf
⎿ (timeout 2m)
⏺ Read 1 file (ctrl+o to expand)
⎿ API Error: Rate limit reached
<img width="964" height="445" alt="Image" src="https://github.com/user-attachments/assets/b4f83bfd-eba2-4083-b678-63d33e143748" />
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.1.71
- Feedback ID: 7d338478-2572-4737-ae94-858ed700ad3e
Errors
[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/samm/.local/share/claude/versions/2.1.71 (expected in multi-process scenarios)\n at Xxq (/$bunfs/root/src/entrypoints/cli.js:2603:2066)\n at zU8 (/$bunfs/root/src/entrypoints/cli.js:2603:1819)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-08T22:32:47.952Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011CYrQdAXw9R8G8JM4oM1wN\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:282:9185)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:321:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-08T22:33:06.432Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011CYrQfqhBvcn2uyXi5npnT\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:282:9185)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:321:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-08T22:33:42.769Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011CYrQgzCSezZnaoJdNT2MK\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:282:9185)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:321:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-08T22:33:59.508Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗