[BUG]

Resolved 💬 4 comments Opened Mar 30, 2026 by jalano0i9u8y7-lab Closed May 2, 2026

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?

  1. Rate limiting should only trigger when usage genuinely approaches the plan limits. At 17% session / 31% weekly usage, the service should be fully available.
  1. 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):

  1. Subscribe to Claude MAX plan
  2. Open Claude Code, start a new session
  3. Use Claude Code moderately (session ~17%, weekly ~31% usage)
  4. Observe: "Rate limit reached" error despite being far below plan limits

Bug 2 (ENOTFOUND connection errors):

  1. Have an active Claude Code session
  2. Send any message / trigger any API call
  3. Observe: getaddrinfo ENOTFOUND api.anthropic.com
  4. Retry — same error repeats 10+ times consecutively
  5. All other internet connections work normally
  6. 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_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗