codemanki / cloudscraper

--DEPRECATED -- 🛑 🛑 Node.js library to bypass cloudflare's anti-ddos page
MIT License
602 stars 139 forks source link

Always get reCaptcha and unable to solve it #324

Closed narra-dev closed 4 years ago

narra-dev commented 4 years ago
Code snippet ```js var cloudscraper = require('cloudscraper'); var options = { uri: 'https://marketplace.tf', }; cloudscraper.get(options, function(error, response, body) { console.log(body); }); ```
Error log ```js Unhandled rejection CaptchaError: captcha at validateResponse (/Users/apple/Desktop/testingFiles2020/debug/node_modules/cloudscraper/index.js:273:11) at onCloudflareResponse (/Users/apple/Desktop/testingFiles2020/debug/node_modules/cloudscraper/index.js:222:5) at onRequestResponse (/Users/apple/Desktop/testingFiles2020/debug/node_modules/cloudscraper/index.js:205:5) at Request. (/Users/apple/Desktop/testingFiles2020/debug/node_modules/cloudscraper/index.js:149:7) at Object.onceWrapper (events.js:317:30) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request. (/Users/apple/Desktop/testingFiles2020/debug/node_modules/request/request.js:1171:10) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at Gunzip. (/Users/apple/Desktop/testingFiles2020/debug/node_modules/request/request.js:1091:12) at Object.onceWrapper (events.js:313:30) at emitNone (events.js:111:20) at Gunzip.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) ```

Never had this issue until today. Now I get it on every request even after a several hours delay. I get this reCaptcha page even in browser, looks like my ip is now marked. EDIT: Tested with clean cookies and clean IP, same captcha again. The site has always used Cloudflare which wasn't a problem until today. Specifying the TLSv1.2 cipher didn't help. If you try to recreate the issue probably you won't get reCaptcha first, but after certain amount of requests you will. Thanks in advance.

narra-dev commented 4 years ago

I assume this could help you fix the issue.

Page code ```js   | ```
maximus99-art commented 4 years ago
  • What version of Cloudscraper are you using? 4.5.0

  • What version of Node.js are you using? (Please share the process information) v8.11.4

  • When did the problem start occurring? I always used a very old version 1.5.0 but today it started getting reCaptcha tick box and having problems with solving it. I updated to a fresh version 4.5.0 but surprisingly it still doesn't work. Throws an error CaptchaError: captcha Captcha screenshot.

  • How often does the problem occur? Always

  • What is the URL? Here's an URL

  • Are there any similar issues? (Please share the links) first second

  • [✓ ] I have read the README. (Code examples)

Code snippet Error log Never had this issue until today. Now I get it on every request even after a several hours delay. I get this reCaptcha page even in browser, looks like my ip is now marked. EDIT: Tested with clean cookies and clean IP, same captcha again. The site has always used Cloudflare which wasn't a problem until today. Specifying the TLSv1.2 cipher didn't help. If you try to recreate the issue probably you won't get reCaptcha first, but after certain amount of requests you will. Thanks in advance.

Same problem for me, but have fixed it, my tool use proxies, and when i use random proxies get captcha error, but now tested with other proxies with ports 9999 - 8080 and i see work fine

codemanki commented 4 years ago

Should be fixed in 4.6.0. Please update and try again

narra-dev commented 4 years ago

Should be fixed in 4.6.0. Please update and try again

Same error in version 4.6.0 I've tried lot's of different chippers and have the latest brotli installed. Any thoughts?

error.response.body ```js Marketplace.tf

Please verify that you're not a bot:

```
unixfox commented 4 years ago

I have the same issue too on https://torrentz2.eu. My IP isn't blocked because I'm able to visit the website with my browser.