429 Too Many Requests is the normal life of free pipelines, not an emergency. The difference between a newcomer and a practitioner is in the reaction: the newcomer loses the task, the practitioner has a pattern. Five patterns for handling 429s from live practice with free limits.
Pattern 1: exponential retry
The basic defense: repeat with a growing delay — 1, 2, 4, 8, 16 seconds. Most 429s are short-lived (a minute-long RPM window), and the second or third retry goes through:
import time
def with_retry(fn, tries=5):
last = None
for i in range(tries):
try:
return fn()
except RateLimitError as e:
last = e
time.sleep(2 ** i)
raise lastA nuance: read the Retry-After header when the server sends it — it is more precise than your exponential curve.
Pattern 2: a queue instead of parallelism
A limit of one concurrent request (GLM Flash — 1) kills a worker pool. The answer is a queue: tasks go one at a time, and the interval between them keeps you inside the RPM. In Python — a semaphore of 1; in n8n — sequential execution of branches. The symptom “429 on the very first requests” almost always means parallelism where a stream is needed.
Pattern 3: degradation instead of blocking
Some platforms do not block but slow down: Token Harbor at 60 RPM did not return 429s — requests simply waited longer for processing. The counter-example: God Router with a hard “Maximum 8 requests within 1 minutes” and 50×429 on the first attempt to violate it. Knowing the character of a platform determines the strategy: in some places you set timeouts, in others retries are pointless.
Pattern 4: fallback to a second route
When retries stop helping (the daily quota is exhausted), the task goes to a backup provider. A twenty-line Python chain — from the piece on the free-tier stack. Important: the fallback fires not on every 429 but after N failed retries — otherwise the load simply moves over to the backup and breaks its quota.
Pattern 5: spreading over time
Daily quotas reset at midnight UTC — heavy batches are scheduled for the early morning UTC. Weekly cycles (Token Harbor: 7 days from the first request) require a reset calendar. A matrix of reset times across providers is half the success of a free pipeline.
Diagnostics: what exactly happened
| Symptom | Diagnosis | Pattern |
|---|---|---|
| 429 on every request immediately | Parallelism or a daily limit | 2 or 4 |
| 429 after N successful ones | An RPM window | 1 |
| Requests “hang” and then go through | Degradation instead of blocking | 3 (timeouts) |
| 429 on the backup too | Overflow broke the backup | 4 with a threshold |
| 429 in the morning, fine in the evening | The daily UTC reset | 5 |
Common questions
Do retries count against the limit? Yes: on some platforms failed requests count toward the limit — a retry without a head makes things worse. Only with a delay.
How do you learn the limit if it is not published? A load test with a timer and the server’s messages: some platforms write the limit right into the text of the 429 (“Maximum 8 requests within 1 minutes”).
A 429 on one layer of the pipeline — change providers? No: patterns 1–2 first, then the fallback. Switching is the last step, after the log.
x-ratelimit headers? Some platforms return the limit and the remainder in headers — read them; that is more precise than tests.
Why is the exponential curve worse than Retry-After? The exponent is a client-side heuristic; the header is the server’s exact instruction. If Retry-After is returned, take its value and keep the exponent as a fallback for platforms without the header. That way you never wait longer than necessary and never knock before the window opens.
Should every 429 be logged? Yes: without a log you cannot assemble the patterns. Record the time, the route, the response text, and the headers — after a week of records the diagnostic table turns into a precise map of the platform. The log also tells you when it is time to change the provider rather than the pattern.
What to do with a 429 in interactive mode? Retries lasting tens of seconds do not fit a dialogue with a user — show a status and move the task into a queue. A nightly queue will wait for the window or a backup route, and the user gets an answer without the interface hanging. For interactive mode, cut the retry intervals to a second or two and move to the fallback quickly.
How many retry attempts should you make? Practice says five attempts with an exponent up to 16 seconds: most minute-long windows close by the third. If all five are spent, the problem is not the RPM window — it is the daily quota or the concurrency limit. From there a fallback with a threshold works, not a continued assault.
Typical mistakes in handling 429s
The patterns above describe what to do; the list below is what not to do. Every mistake here is collected from live practice with free pipelines and costs a day of debugging until the cause is found. Check your handler against this list before the first real 429 finds it on its own.
- A retry without a delay. An instant repeat hits the same closed window, and on some platforms a failed request counts toward the limit. A loop without a pause turns into an assault — ending in a ban instead of skipping a window.
- Ignoring Retry-After. The server names the exact wait time, and the client sleeps on its own exponential curve. Reading the header costs less than extra attempts and extra rejections.
- A fallback on every 429. Switching to the backup on the first rejection moves the load onto the backup and breaks its quota. The trigger is a threshold — only after N failed retries.
- A worker pool against a concurrency limit. Ten parallel threads with a limit of “one request at a time” produce 429s on the very first requests. Queue first, parallelism later — and only if the limit allows it.
- No log. Without records of time, route, and response text you cannot tell an RPM window from a daily quota. Blind diagnostics turn the five patterns into guesswork.
- One strategy for every platform. A degrading platform needs timeouts, a hard one needs retries, daily quotas need a reset calendar. A universal handler loses to knowing the character of the specific route.
- Forgotten weekly cycles. Windows of 7 days from the first request are invisible in daily statistics. Without a reset calendar the pipeline falls over on the same day of the week.
A separate maturity test: switch off the backup route and see whether the pipeline degrades predictably or falls apart. A system that, when a layer fails, merely slows down and still delivers the queue to the end is built correctly — the patterns work together, not separately. The list is worth re-checking after every new provider joins the free-tier stack: every platform has its own failure habits.
A 429 is data, not a service failure: five patterns turn it into predictable pipeline operation. Patterns current as of autumn 2026.
