Skip to content
Guide

2Captcha Not Working in 2026: Every Error Code, Turnstile Challenge Pages and Rejected Tokens

NSLSolver TeamPublished Updated 9 min read

When 2Captcha "stops working", it is almost always one of three things: the API is returning an error code your code does not handle (ERROR_ZERO_BALANCE, ERROR_NO_SLOT_AVAILABLE, ERROR_CAPTCHA_UNSOLVABLE...), you are submitting or polling faster than its request limits allow, or the Turnstile token is solved correctly but the target site rejects it because the challenge-page parameters, User-Agent, IP or timing do not match. Find your exact message in the table below, apply the fix, and only consider another tool if the problem is specific to Cloudflare and survives those fixes.

Every error code and parameter below comes from 2Captcha's own documentation (the legacy in.php / res.php API and the newer createTask / getTaskResult API), and the token rules come from Cloudflare's Turnstile documentation.

Quick answer: what your 2Captcha error means

Legacy API responses look like ERROR_ZERO_BALANCE in plain text or {"status":0,"request":"..."} with json=1. The createTask API returns the same codes with a non-zero errorId. Find yours below.

ERROR_WRONG_USER_KEY / ERROR_KEY_DOES_NOT_EXIST
The API key is malformed or unknown. Use the 32-character key from your dashboard, loaded from an environment variable. Stop retrying: 5 requests with a wrong key block your IP for 10 minutes (ERROR: 1004).
ERROR_ZERO_BALANCE
The account has no funds. Top up, then resume. The docs ask for 60 seconds between requests while the balance is empty; 120 of these errors in a minute triggers a 5-minute block (ERROR: 1002).
ERROR_NO_SLOT_AVAILABLE
Your queue (or your bid) is the bottleneck. For Turnstile and other token captchas, too many of your tasks are waiting for workers (usually 50 to 100). Wait a few seconds, cap concurrency, then resubmit.
CAPCHA_NOT_READY / "status": "processing"
Not an error: the task is still being solved. Poll every 5 seconds. More than about 20 result requests per captcha blocks the account for 5 minutes (ERROR: 1005).
ERROR_CAPTCHA_UNSOLVABLE
Workers could not solve the task. Three workers failed or 90 seconds passed; you are not charged. Check the sitekey and URL, add action, data and pagedata on challenge pages, then create a new task.
ERROR_PAGEURL / ERROR_BAD_PARAMETERS
A required field is missing or malformed. Send the full page URL and the data-sitekey value. Add debug_dump=1 to a legacy request to see what 2Captcha received.
ERROR_BAD_PROXY / ERROR_PROXY_CONNECTION_FAILED / ERROR_PROXY_FORMAT
2Captcha could not use your proxy. A failing proxy is marked bad for 10 minutes. Use login:password@host:port, allowlist 2Captcha's IPs if your proxy uses IP authentication, or switch proxy.
MAX_USER_TURN / ERROR: 1001-1005 / IP_BANNED
You hit a request-rate limit. More than 60 in.php requests in 3 seconds gives a 10-second ban. Keep 100 ms between submissions and back off on errors.
Token returned, but the site still shows the challenge or rejects the form
The token does not fit your request. On Cloudflare challenge pages, pass action, data and pagedata, use the returned userAgent, keep the same IP and submit within 300 seconds.

Why 2Captcha requests fail: four different layers

"2Captcha not working" usually mixes up four separate failure points, each with a different fix:

  • Your account or request: wrong key, empty balance, missing pageurl, malformed proxy. The task is rejected before any worker sees it; the fix is in your code or dashboard.
  • Request rate: polling or resubmitting too fast. 2Captcha answers with temporary blocks (MAX_USER_TURN, ERROR: 1001 to 1005), so a naive retry loop turns one error into minutes of downtime.
  • The solve itself: ERROR_CAPTCHA_UNSOLVABLE, usually because the parameters describe the wrong captcha, or a Cloudflare challenge page was sent as a plain widget.
  • The target site: 2Captcha shows success, but the site refuses the token because the User-Agent, IP, challenge parameters or timing do not match.

Account and request errors: fix these in your code first

These come back from in.php (or createTask) immediately. For most of them 2Captcha's instruction is "stop sending requests": retrying will not change the answer and can get your IP blocked.

  • ERROR_WRONG_USER_KEY means the key is not 32 characters; ERROR_KEY_DOES_NOT_EXIST means it is well-formed but unknown. Check that the environment variable is really loaded in production.
  • ERROR_ZERO_BALANCE: deposit funds, and check the balance once at start-up so parallel workers do not all hit the API with an empty account.
  • ERROR_PAGEURL and ERROR_BAD_PARAMETERS: send the full URL of the page where the widget renders. Adding debug_dump=1 makes 2Captcha return the parameters it received, which usually exposes the typo.
  • ERROR_IP_NOT_ALLOWED: your account has an IP allowlist and the calling server is not on it.

Polling and rate limits: CAPCHA_NOT_READY, ERROR_NO_SLOT_AVAILABLE and MAX_USER_TURN

CAPCHA_NOT_READY (legacy API) and "status": "processing" (createTask API) are normal: the task is still with a worker. Wait after submitting, then poll every 5 seconds. 2Captcha blocks accounts that make more than roughly 20 result requests per captcha (the documented rule is R > C x 20 + 1200, balance checks included). To avoid polling entirely, use the pingback (callback URL) option.

ERROR_NO_SLOT_AVAILABLE means your bid is below the current rate (image captchas) or your own queue of unassigned token tasks is too long (Turnstile). Slow down and lower concurrency; retrying too fast turns it into ERROR: 1001 (10 minutes) or ERROR: 1003 (30 seconds). MAX_USER_TURN means more than 60 in.php requests in 3 seconds and pauses the account for 10 seconds. A loop that respects these limits (createTask API):

twocaptcha_turnstile.py
import time
import requests

API = "https://api.2captcha.com"
KEY = "YOUR_2CAPTCHA_KEY"

def solve_turnstile(site_key, page_url, action=None, data=None, pagedata=None):
    task = {
        "type": "TurnstileTaskProxyless",
        "websiteURL": page_url,
        "websiteKey": site_key,
    }
    # Challenge pages only: values captured from turnstile.render()
    if action:
        task["action"] = action
    if data:
        task["data"] = data          # cData
    if pagedata:
        task["pagedata"] = pagedata  # chlPageData

    r = requests.post(f"{API}/createTask", json={"clientKey": KEY, "task": task}).json()
    if r["errorId"] != 0:
        # ERROR_KEY_DOES_NOT_EXIST, ERROR_ZERO_BALANCE...: stop, do not loop
        raise RuntimeError(r.get("errorCode", r["errorId"]))

    time.sleep(5)
    for _ in range(18):  # stays under the 20-polls-per-task guideline
        res = requests.post(
            f"{API}/getTaskResult",
            json={"clientKey": KEY, "taskId": r["taskId"]},
        ).json()
        if res["errorId"] != 0:
            # ERROR_CAPTCHA_UNSOLVABLE: create a NEW task, do not re-poll
            raise RuntimeError(res.get("errorCode", res["errorId"]))
        if res["status"] == "ready":
            sol = res["solution"]
            return sol["token"], sol["userAgent"]
        time.sleep(5)  # status == "processing"
    raise TimeoutError("no result after 95 s")

ERROR_CAPTCHA_UNSOLVABLE on Turnstile

According to 2Captcha, ERROR_CAPTCHA_UNSOLVABLE means three workers could not solve the task or no answer arrived within 90 seconds, and you are not charged for it. One occasional failure is normal; retry with a new task. If you see it on most Turnstile tasks, the parameters are usually the cause:

  • The sitekey is wrong. Take it from the data-sitekey attribute of the Turnstile div or from the turnstile.render call, not from a cached copy of the page.
  • The page is a Cloudflare challenge page, not a standalone widget. That case needs action, data and pagedata (next section). Without them the solve can fail or produce a token the page will not accept.
  • You are using TurnstileTask with a slow or blocked proxy. Test TurnstileTaskProxyless first; switch to your own proxy only if the site needs IP matching.
  • The task was sent long after the values were extracted. cData and chlPageData change on every render, so capture them right before creating the task.

Turnstile on Cloudflare challenge pages: action, data, pagedata and userAgent

2Captcha documents two Turnstile cases. A standalone widget protecting a form needs only the sitekey and the page URL; you then put the token into the cf-turnstile-response field (and g-recaptcha-response in compatibility mode) or pass it to the callback. A Turnstile widget on a Cloudflare challenge page (the full-page interstitial on a site proxied through Cloudflare) is different: 2Captcha says you must also send action, data and pagedata, and must set your browser or HTTP client User-Agent to the value returned with the token.

Those three values are not in the HTML. They are arguments of the turnstile.render() call: action, cData (sent as data) and chlPageData (sent as pagedata). The documented way to get them is to override turnstile.render before the widget loads, log the parameters, and keep a reference to the callback so you can call it with the token. With the legacy API, also set json=1 on res.php so the response includes the useragent field.

capture_turnstile_params.js
// Inject BEFORE the Turnstile script loads (e.g. Playwright add_init_script).
// Pattern from 2Captcha's Turnstile docs: capture the render() arguments.
const i = setInterval(() => {
  if (window.turnstile) {
    clearInterval(i)
    window.turnstile.render = (el, opts) => {
      window.__tsParams = {
        websiteKey: opts.sitekey,
        websiteURL: window.location.href,
        action: opts.action,
        data: opts.cData,
        pagedata: opts.chlPageData,
        userAgent: navigator.userAgent,
      }
      window.tsCallback = opts.callback  // call it later with the token
      return 'foo'
    }
  }
}, 50)

// After solving: window.tsCallback(token)

Solved but rejected: User-Agent, IP and expiry mismatches

If 2Captcha returns a token and the site still loops back to the challenge, or your form returns "invalid captcha", check these in order:

  • User-Agent mismatch: on challenge pages the token belongs to the worker's browser, so send every following request with the userAgent returned in the solution.
  • IP mismatch: 2Captcha's proxy documentation notes that Cloudflare protection pages require IP matching. Use TurnstileTask with your own proxy and send the follow-up requests through that same proxy.
  • Expiry and reuse: Cloudflare documents that each Turnstile token is valid for 300 seconds and is meant to be used once. Submit as soon as you receive it and never send the same token twice (siteverify answers timeout-or-duplicate).
  • Stale parameters: cData and chlPageData are generated per page load. A token solved with values from an older load will not match the current challenge.
  • Wrong delivery: on challenge pages, pass the token to the captured callback; on normal forms, check the field name and that your client actually sends it.

When to switch to a Cloudflare-specific solver

Keep 2Captcha if you need its breadth: image captchas, reCAPTCHA v2 and many other types that a Cloudflare-focused API does not cover. Many of the errors above are fixed with configuration, and its documentation is detailed.

A dedicated API makes sense when your traffic is mostly Cloudflare and the work is in the glue code: capturing render() parameters, polling, matching the User-Agent and IP. For reference, 2Captcha lists Cloudflare Turnstile at EUR 1.40 per 1,000 on 2captcha.com/pricing (the page shows prices in the visitor's local currency; checked 2026-12-01). NSLSolver charges $0.80 per 1,000 Turnstile solves and $1.00 per 1,000 Cloudflare Challenge solves, billed only on success.

Be clear about the limits: NSLSolver handles Cloudflare Turnstile, Cloudflare Challenge, reCAPTCHA v3 / Enterprise, Kasada and Akamai (beta). It does not solve reCAPTCHA v2, hCaptcha, image or text captchas, FunCaptcha, GeeTest or DataDome, so if you need those, stay with a general-purpose service for them. For a side-by-side table of prices and supported types, see 2Captcha and CapSolver alternatives compared.

The same job with NSLSolver

NSLSolver is synchronous: one POST to /solve returns the token, or the cf_clearance cookie plus the matching user_agent, with no task ID and no polling. Turnstile solves average about 250 ms and Cloudflare Challenge about 3.3 s. For a challenge, omit user_agent (or send an iPhone Safari UA), because the clearance is issued for an iPhone Safari User-Agent, and replay the returned user_agent through the same proxy.

Only automate sites you own or are authorised to access. Sign up with Google, Gmail or Proton for $0.10 of free credit (about 125 Turnstile solves), with no card required.

nslsolver_cloudflare.py
import requests

API = "https://api.nslsolver.com"
HEADERS = {"X-API-Key": "YOUR_API_KEY"}

# 1) Turnstile widget on a form: one synchronous call, no polling
r = requests.post(f"{API}/solve", headers=HEADERS, json={
    "type": "turnstile",
    "site_key": "0x4AAAAAAAxxxxxxxxxxxxxxxx",
    "url": "https://example.com/login",
}).json()
token = r["token"]  # send as cf-turnstile-response within 300 s

# 2) Full-page Cloudflare challenge ("Just a moment..."): get cf_clearance
PROXY = "http://user:pass@host:port"
r = requests.post(f"{API}/solve", headers=HEADERS, json={
    "type": "challenge",
    "url": "https://example.com/",
    "site_key": "0x4AAAAAAAxxxxxxxxxxxxxxxx",
    "proxy": PROXY,
    # omit user_agent: the clearance is issued for the solver's iPhone Safari
}).json()

s = requests.Session()
s.proxies = {"http": PROXY, "https": PROXY}  # same IP as the solve
s.cookies.update(r["cookies"])                # includes cf_clearance
s.headers["User-Agent"] = r["user_agent"]     # replay exactly this UA
print(s.get("https://example.com/").status_code)

Frequently asked questions

Why does 2Captcha return ERROR_CAPTCHA_UNSOLVABLE?

It means three 2Captcha workers could not solve the task or no answer arrived within 90 seconds. You are not charged for it. Retry with a new task; if it keeps happening on Turnstile, check the sitekey and URL, and on Cloudflare challenge pages add the action, data and pagedata parameters captured from turnstile.render.

What does CAPCHA_NOT_READY mean?

It is not an error. The legacy res.php endpoint returns CAPCHA_NOT_READY (the createTask API returns "status": "processing") while a worker is still solving. Wait 5 seconds and ask again, and avoid more than about 20 result requests per captcha, or 2Captcha temporarily blocks the account (ERROR: 1005).

How do I fix ERROR_NO_SLOT_AVAILABLE?

Slow down. For token captchas like Turnstile it means too many of your tasks are queued and not yet assigned to workers; for image captchas it means your maximum bid is below the current rate. Wait a few seconds before resubmitting, reduce concurrency, or raise your maximum rate in the 2Captcha settings.

Why is my 2Captcha Turnstile token rejected by the site?

Usually because of a mismatch. On Cloudflare challenge pages you must send action, data (cData) and pagedata (chlPageData), use the userAgent returned with the token, and keep the same IP through your own proxy. Turnstile tokens are also valid for only 300 seconds and are single-use, so submit immediately and never reuse one.

Where do I find action, data and pagedata for a Cloudflare challenge page?

They are arguments of the turnstile.render() call, not attributes in the HTML. Inject a script before the widget loads that overrides turnstile.render, records action, cData and chlPageData, and saves the callback. Send cData as data and chlPageData as pagedata, then call the saved callback with the token.

Is there an alternative to 2Captcha for Cloudflare?

If your traffic is mostly Cloudflare Turnstile or full-page Cloudflare challenges, a dedicated API such as NSLSolver returns the token or cf_clearance cookie in one synchronous call, from $0.80 per 1,000 Turnstile solves, billed only on success. It does not cover reCAPTCHA v2, hCaptcha or image captchas, so keep a general service for those.

Cloudflare tokens in one call, no polling

Send the sitekey and URL, get a Turnstile token or a cf_clearance cookie back in the same response. Free credit with Google, Gmail or Proton sign-up, no card needed.