Closed dadodasyra closed 2 years ago
After more digging I found that it freeze on https://hcaptcha.com/checkcaptcha/${key}?s=${sitekey}
https://github.com/aw1875/puppeteer-hcaptcha/blob/master/hcaptcha.js#L285
And the error is catched here https://github.com/aw1875/puppeteer-hcaptcha/blob/master/hcaptcha.js#L285. Maybe we should trigger a retry, and at least search a little bit why we're getting a 400 bad request
I've been quite busy so haven't really taken a look at hCaptcha but after a quick inspection of the code it looks like the issue is related to the TensorFlow model not correctly identifying the images. Right now the entire answer block comes back as false every time I run the code. So, when I have a little more free time I'll try to dive into that and see exactly what is happening there.
@dadodasyra Ran some more tests today and it looks like they seem to be passing now. Not sure if there is really anything I can do aside from training my own model or finding a better source for the image recognition. I'm going to close this issue now but if you have any alternative solutions for the image recognition please let me know.
I'm currently trying to use the extension has showed in the ReadMe (with the autofill). It seems to partially work, like 1 on 4 times. I saw that sometimes the token returned is undefined. So I tried to debug it a little bit and found that there was an error 400 Bad request. And in this case the code doesnt seems to try to retry the captcha complete but return an undefined token