JimmyLaurent / hcaptcha-solver

A library to solve hCaptcha challenges
194 stars 37 forks source link

TypeError: Cannot read property 'reduce' of undefined #2

Closed Ross1337 closed 4 years ago

Ross1337 commented 4 years ago

Hello ! Since yesterday, when I try to solve a captcha, it gives me an error : TypeError: Cannot read property 'reduce' of undefined at tryToSolve (C:\Users\m\Desktop\TAFF\JS\puppeteer-recaptcha-solver-master\node_modules\hcaptcha-solver\index.js:44:25) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async solveCaptcha (C:\Users\m\Desktop\TAFF\JS\puppeteer-recaptcha-solver-master\node_modules\hcaptcha-solver\index.js:77:22) at async hcaptcha (C:\Users\m\Desktop\TAFF\JS\puppeteer-recaptcha-solver-master\ng\ngv2.js:108:26) at async run (C:\Users\m\Desktop\TAFF\JS\puppeteer-recaptcha-solver-master\ng\ngv2.js:142:27)

Maybe is there a problem with https://hcaptcha.com/getcaptcha request ? Thanks if you respond!

JimmyLaurent commented 4 years ago

They've upgraded their system, I fixed your problem but the bypass is dead for now.

Revadike commented 4 years ago

They've upgraded their system, I fixed your problem but the bypass is dead for now.

What do you mean dead? I've applied your fix and it seems working fine here. Also, could you please bump your versions (both here and cf-solver)?

JimmyLaurent commented 4 years ago

I'm glad to hear that, I ran tests and I had some troubles solving captchas. I made the changes and published new versions as asked ;)

Revadike commented 4 years ago

I'm glad to hear that, I ran tests and I had some troubles solving captchas. I made the changes and published new versions as asked ;)

I think it was a fluke (perhaps captcha wasn't prompted), because now it doesn't seem to work anymore (loading forever, probably retrying to solve). I should be fine implementing a service like 2captcha for cf-scraper, right?

JimmyLaurent commented 4 years ago

Yeah, you have one example here