2captcha-python icon indicating copy to clipboard operation
2captcha-python copied to clipboard

Cloudflare Turnstile ERROR_CAPTCHA_UNSOLVABLE

Open bingyu50 opened this issue 1 year ago • 5 comments

Looks like Cloudflare Turnstile does not work now.

bingyu50 avatar Nov 13 '23 22:11 bingyu50

Hi, @bingyu50! Have you been able to solve this? Was your captcha type "interactive" or "managed"? It looks like 2captcha doesn't support interactive turnstile captchas, because it works fine for managed turnstile in their API docs

RezohlazovVI avatar Jan 18 '24 14:01 RezohlazovVI

Hi @RezohlazovVI, I have same error ERROR_CAPTCHA_UNSOLVABLEthis captcha info and the following code:

image

result = solver.turnstile(
    sitekey="0x4AAAAAAADnPIDROrmt1Wwj",
    url="https://cityoflapcp.ezlinksgolf.com/index.html#/search",
    data="foo",
    pagedata="cloudflare captcha",
    action="challenge",
)

print("Result: ", result)

sleep(30)

captchaId = result["captchaId"]
url = (
    f"https://2captcha.com/res.php?key={YOUR_API_KEY}&action=get&id={captchaId}&json=1"
)

response = requests.get(url)

can you help me?

Jackson-Vieira avatar Jan 26 '24 01:01 Jackson-Vieira

@bingyu50 @Jackson-Vieira @RezohlazovVI Good afternoon. 2Captcha successfully solves captcha on the site you specified. To solve captcha on this site it is not enough to pass captcha parameters, you need to follow the instructions described in the article Bypassing Cloudflare Challenge with Puppeteer and 2Captcha.

There is a great example demonstrating how to bypass Cloudflare challenge page. Just change the URL of the page to the one you need in example, the captcha will be solved successfully.

Please let me know if you have any problems.

dzmitry-duboyski avatar Jun 03 '24 07:06 dzmitry-duboyski

When you access a site which shows "Just a momemnt" page and says "Verify you are human by completing the action below." then when you click the checkbox it redirects to the actual site as a POST request and in the request payload it does not contain 'token' parameter at all. It sends 5 randomly named secret parameters with long encrypted values to the actual site which verifies them and allow you to move on.

I believe this is not possible to solve using 2captcha because all 2captcha docs mentioned a single 'token' parameter everywhere. Is it right?

I have almost created a custom solution to solve those site entry captchas by the way but it is a big job and still much left do it. Can 2captcha solve it? Or should I continue with my custom solution?

codingmall avatar Jul 07 '24 00:07 codingmall