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

Errors and troubleshooting

What does ERROR_RATE_LIMIT mean?

It means your API key sent more than 600 requests within a minute. The limit counts calls, not tasks, so fast polling across many workers is the usual cause. Pause briefly, then continue at a lower pace.

The answer

Each GateSolver API key may make 600 requests per minute. When a call goes over that, the API answers with errorId: 1 and errorCode: "ERROR_RATE_LIMIT" instead of processing it. Nothing is charged for the refused call, and the tasks you already created keep running; only that request was turned away. There is no limit on how many tasks can run at once, so the cure is not fewer tasks but fewer requests per task.

Where the requests come from

Count what one task costs in calls. Creating it is one request. Each getTaskResult poll is another. A token task polled every three seconds for ten seconds uses about four or five calls in total. Poll every half second instead and the same task uses twenty or more. Multiply by the number of workers and tasks per minute, add any getBalance checks, and you see how a fleet reaches 600. The page on the rate limit per key has worked numbers.

Handling the error in code

async function callWithBudget(method, payload, tries = 5) {
  for (let i = 0; i < tries; i++) {
    const res = await fetch(`https://gatesolver.com/${method}`, {
      method: "POST",
      headers: { "Content-Type": "application/json", "User-Agent": "rate-aware-worker/1.0" },
      body: JSON.stringify(payload),
    }).then((resp) => resp.json());
    if (res.errorCode !== "ERROR_RATE_LIMIT") return res;
    const pauseMs = Math.min(20_000, 2_000 * 2 ** i) + Math.random() * 1_000;
    await new Promise((done) => setTimeout(done, pauseMs));
  }
  throw new Error(`${method}: still rate limited after ${tries} tries`);
}

Wait a couple of seconds, longer on each repeat, with a little random jitter so many workers do not retry in the same instant. This is exponential backoff. Retrying immediately makes things worse, because the retry itself counts against the same minute.

Preventing it

  • Poll at the recommended pace. Three seconds for token tasks, one second for image tasks. Faster polling does not make answers arrive sooner.
  • Sleep before the first poll. Most token tasks are not ready in the first couple of seconds; sleeping before the first check saves a call per task.
  • Share one limiter. All workers use the same key, so the budget is shared. A small token bucket in Redis, or a single process that does all API calls, keeps the total below 600.
  • Check balance on a schedule. One getBalance per minute is plenty; checking before every task wastes budget.
  • Stop dead polls. Polling an invalid id or a task long past its two-minute window burns calls for nothing.

Reading the pattern in your logs

Rate limit errors that arrive in bursts at the top of each minute usually come from cron jobs or batch runs that all start at once; stagger their start times. Errors spread evenly across the minute mean steady over-polling; lengthen the interval. Errors only from one service point at a single misbehaving client, often a retry loop without a delay. Logging the method name with each refused call shows quickly whether polls, creates or balance checks dominate.

A quick capacity estimate

If each task averages five calls, 600 calls per minute supports about 120 task completions per minute on one key, at any concurrency. Reduce calls per task (better poll timing) to raise that. Because GateSolver gives one API key per account, adding keys is not the way to scale; spending calls carefully is. The scaling guide shows where a shared limiter fits in a worker fleet.

Not the same as a site's rate limit

ERROR_RATE_LIMIT concerns calls to GateSolver only. A 429 or Cloudflare error 1015 from the target site is a different limit, set by that site, and needs a different fix (slowing your scraper). Keep the two apart in your logs so one does not get blamed for the other.

In.php clients

The in.php interface shares the same per-key budget. If your legacy client polls res.php in a tight loop, add a delay between calls; CAPCHA_NOT_READY is an invitation to wait, not to ask again at once. The general pattern for asynchronous jobs is explained under task polling.

Common questions

What is the GateSolver rate limit?

600 API requests per minute per API key, counting createTask, getTaskResult, getBalance and in.php calls.

Are tasks lost when I hit ERROR_RATE_LIMIT?

No. Running tasks continue; only the refused request was not processed.

Am I charged for rate limited calls?

No. Error responses are never charged.

Can I get more requests by creating another key?

No. Each account has one key, and a new key replaces the old one, so the budget stays the same.

Is there a limit on concurrent tasks?

No. Concurrency is unlimited; only the number of API calls per minute is capped.

Keep reading