[BUG] Sonnet 4 is completely unsuable because of 429s

Resolved 💬 7 comments Opened May 30, 2025 by nooransari911 Closed May 30, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [x] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.6 (Claude Code)
  • Operating System: Linux (Fedora 41, 6.13.5-200.fc41.x86_64 (64-bit))
  • Terminal: warp.dev

Bug Description

Constant stream of 429s for sonnet 4 model when using claude code API Error (429 Too many tokens, please wait before trying again.) · Retrying in 1 seconds… (attempt 1/10). I am completely unable to use sonnet 4.

It is not AWS service quota limitation. I tried with extremely low message rate.

This happens for arbitrarily simple and small messages. The cwd had very little content.

It also happens on sonnet 3.7, but its more rare for 3.7 and 3.7 is usable.

Steps to Reproduce

  1. Fresh install of claude code
  2. Set AWS_DEFAULT_REGION, AWS_PROFILE and other AWS authentication environment variables
  3. Set model to sonnet 4
  4. Type a message
  5. I get stream of constant 429s

Expected Behavior

429s should happen only when I hit AWS service quotas.

Actual Behavior

I get stream of 429s

Additional Context

Using cross-region inference profile, region: us-west-2,

View original on GitHub ↗

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