dzmitry-duboyski / 2captcha-ts

JavaScript package for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, Cloudflare turnstile, funcaptcha, geetest and solve any other captchas.
https://www.npmjs.com/package/2captcha-ts
MIT License
18 stars 3 forks source link

CloudFlare Trunstile Standalone mode ERROR_BAD_PARAMETERS #12

Closed guimaferreira closed 8 months ago

guimaferreira commented 8 months ago

When solving Turnstile Standalone, I'm getting this error:

APIError: Some parameters are missing in this request. If you're using a pre-provided function, please open up an issue on the GitHub (https://github.com/dzmitry-duboyski/2captcha-ts)

It's because 2captcha is throwing ERROR_BAD_PARAMETERS.

I did some tests using Postman and discovered that this probably happens because it's required to send data using POST method.

Currently cloudflareTurnstile() uses GET.

guimaferreira commented 8 months ago

My bad. Actually I discovered that the problem was with my sitekey.