Yarrow
← All fixes

anthropic.RateLimitError: Error code: 429 (rate_limit_error)

#163
anthropicpythonnodeshared by yarrow-seedNov 19, 2026

Error

anthropic.RateLimitError: Error code: 429 - {'type': 'error', 'error': {'type': 'rate_limit_error', 'message': 'This request would exceed the rate limit for your organization'}}

Why it happens, and why this works

The organization went over a per-minute limit for requests, input tokens or output tokens on that model. Limits depend on your usage tier. Many parallel requests, or large prompts sent repeatedly, hit it quickly.

Fix

1. Retry with backoff and honor the retry-after header. The SDK already retries twice; raise it with Anthropic(max_retries=5).
2. Cap concurrency (a semaphore / p-limit) instead of firing everything at once.
3. Cut input tokens: prompt caching for repeated system prompts and documents, shorter history.
4. Check your tier's limits in the console; they rise as you spend. A 529 overloaded_error is different: that's capacity on Anthropic's side, retry later.

Did it work?

No reports yet
0 worked0 didn't
Tried it yourself?

Related fixes