NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Errors and troubleshooting

How do I avoid HTTP 429 Too Many Requests?

Send fewer requests per unit of time to each host: honor the Retry-After header, cap concurrency per domain, back off with jitter after a 429, and avoid fetching what has not changed.

What 429 means

HTTP 429 Too Many Requests is the server telling you that a rate limit was crossed. The limit can be per IP, per session, per account or per API key, and it usually resets after a window of seconds or minutes. The response often includes a Retry-After header with the number of seconds to wait, or a date. The fix is always some form of slowing down: the question is where, and by how much.

Handle it correctly when it happens

Treat 429 as "wait, then retry", never as "retry immediately". Read Retry-After if present; otherwise wait with exponential backoff plus random jitter, so a fleet of workers does not retry in lockstep.

import time, random
import requests

def get_politely(session, url, attempts=6):
    delay = 2.0
    for _ in range(attempts):
        resp = session.get(url, timeout=20)
        if resp.status_code != 429:
            return resp
        hint = resp.headers.get("Retry-After", "")
        pause = float(hint) if hint.isdigit() else delay + random.uniform(0, delay)
        time.sleep(min(pause, 120))
        delay *= 2
    raise RuntimeError(f"still rate limited after {attempts} tries: {url}")

Prevent it in the first place

  • Cap concurrency per host. A pool of fifty workers hitting one domain is the most common cause. Limit parallel requests per domain, regardless of total workers; the glossary entry on concurrency covers patterns.
  • Pace with a token bucket. Allow a steady rate, such as one request every two seconds per host, with small bursts.
  • Cache and skip. Use conditional requests (If-Modified-Since, ETag) and skip pages you fetched recently.
  • Spread across identities. If the limit is per IP, more IPs raise your total ceiling; see how many proxies you need. If it is per account, more IPs will not help.
  • Use the official API where one exists; its limits are documented and usually generous for its purpose.

Finding the real limit

Few sites publish their limits. Measure: start slow, increase the rate step by step, and note where 429s begin. Some APIs send headers such as X-RateLimit-Remaining and X-RateLimit-Reset; when you see them, use them to pace exactly. Set your normal rate comfortably below the measured edge, since limits can vary by time of day.

429 and CAPTCHAs together

Some sites answer heavy traffic with a CAPTCHA instead of, or after, a 429. If you solve those challenges and keep the same rate, you will keep meeting them. Solving is the right answer for occasional checks; slowing down is the right answer for rate driven ones. The page on scraping without getting blocked covers the balance.

GateSolver's own limit

The GateSolver API allows 600 requests per minute per API key, and polling calls count toward it. Exceeding it returns ERROR_RATE_LIMIT in the JSON reply rather than an HTTP 429 page, and the call is not charged. There is no cap on concurrent tasks, so the usual cause is polling too often: every three seconds for token tasks and every second for image tasks is plenty. A job running 100 tasks at once and polling each every 3 seconds makes about 2,000 calls a minute, which is over the limit; poll less often or batch your checks. More detail is on the page about the request limit per key.

Common mistakes

Retrying on a tight loop, which extends the ban window. Ignoring Retry-After values in date format. Counting only successful requests when pacing, while retries also count against the limit. And running several copies of the same scraper by accident, which a lock in your scheduler prevents.

Common questions

How long should I wait after a 429?

Use the Retry-After value when given; otherwise start around a few seconds and double the wait on each repeat.

Do proxies fix 429 errors?

Only when the limit is per IP. Limits per account or per API key are not affected by changing IPs.

Is 429 the same as being banned?

No. It is a temporary limit; a ban usually shows as 403 or a block page that does not clear with time.

Does GateSolver return HTTP 429?

It returns the JSON error ERROR_RATE_LIMIT when a key exceeds 600 requests per minute, and the call is free.

Why do I get 429 with only a few workers?

Retries, redirects and asset requests add up, and the limit may be low; measure the real rate you send.

Keep reading