[BUG]
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Two concurrent critical bugs making Claude Code completely unusable
Bug 1: Rate limit triggered despite usage far below limits
Claude Code returns API Error: Rate limit reached repeatedly, even though the Account & Usage panel clearly shows:
- Session (5hr): 17% (resets in 4h)
- Weekly (7 day): 31% (resets in 4d)
- Weekly Sonnet: 4% (resets in 3d)
All usage indicators are far below limits. This locks out a paying MAX plan subscriber from using the service without any valid reason.
Bug 2: Mass ENOTFOUND DNS/connection failures
Claude Code fails with getaddrinfo ENOTFOUND api.anthropic.com 10+ consecutive times with no self-recovery. Other internet services work fine during these failures, confirming this is Anthropic infrastructure issue, not local network.
These two bugs together rendered Claude Code completely unusable for an extended period with no warning, no status update, and no compensation.
What Should Happen?
- Rate limiting should only trigger when usage genuinely approaches the plan limits. At 17% session / 31% weekly usage, the service should be fully available.
- Claude Code should maintain stable connections with automatic retry on transient failures. 10+ consecutive ENOTFOUND errors with no self-recovery is unacceptable.
MAX plan subscribers expect a reliable, premium service with transparent communication when outages occur.
Error Messages/Logs
Bug 1 - Rate limit error (shown in Claude Code UI):
Claude Code usage: Session 17%, Weekly 31%
Error: "Claude AI rate limit reached. Please wait before sending more messages."
Bug 2 - ENOTFOUND connection errors (repeated 10+ times consecutively):
Error: getaddrinfo ENOTFOUND api.anthropic.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
Error: connect ECONNREFUSED
Error: getaddrinfo ENOTFOUND api.anthropic.com
[... same error repeating 10+ consecutive times ...]
Note: Other internet (browsers, other APIs) worked normally during ENOTFOUND errors.
Steps to Reproduce
Bug 1 (False Rate Limit):
- Subscribe to Claude MAX plan
- Open Claude Code, start a new session
- Use Claude Code moderately (session ~17%, weekly ~31% usage)
- Observe: "Rate limit reached" error despite being far below plan limits
Bug 2 (ENOTFOUND connection errors):
- Have an active Claude Code session
- Send any message / trigger any API call
- Observe: getaddrinfo ENOTFOUND api.anthropic.com
- Retry — same error repeats 10+ times consecutively
- All other internet connections work normally
- No self-recovery; no status update from Anthropic status page
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
1.2.x (Claude Code, MAX plan)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗