Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cfscrape cannot solve captchas - SSLv3 handshake failure #87

Open
ilu33 opened this issue Nov 19, 2019 · 2 comments
Open

cfscrape cannot solve captchas - SSLv3 handshake failure #87

ilu33 opened this issue Nov 19, 2019 · 2 comments

Comments

@ilu33
Copy link

ilu33 commented Nov 19, 2019

I'm getting this error - anybody else too?

Could not open 'http://www.curseforge.com/wow/addons/bagnon/files', retrying... (0) Could not open 'http://www.curseforge.com/wow/addons/bagnon/files', retrying... (1) Could not open 'http://www.curseforge.com/wow/addons/bagnon/files', retrying... (2) Could not open 'http://www.curseforge.com/wow/addons/bagnon/files', retrying... (3) Could not open 'http://www.curseforge.com/wow/addons/bagnon/files', retrying... (4) Curse Update Exception Cloudflare captcha challenge presented for www.curseforge.com (cfscrape cannot solve captchas)

Only on Debian10. On Debian9 - same machine - everything works.

@ilu33
Copy link
Author

ilu33 commented Dec 12, 2019

When I edit waitdlg.py to set
cfscrape.DEFAULT_CIPHERS = 'TLS_AES_256_GCM_SHA384:ECDHE-ECDSA-AES256-SHA384'
I'm getting rid of the cannot solve captchas error but instead I get this Anorov/cloudflare-scrape#310 - which is the exact problem I'm having. I'm just wondering why this still doesn't happen under Debian9.

@ilu33 ilu33 changed the title cfscrape cannot solve captchas cfscrape cannot solve captchas - SSLv3 handshake failure Dec 12, 2019
@ilu33
Copy link
Author

ilu33 commented Dec 13, 2019

I solved the problem by inserting

cfscrape.DEFAULT_CIPHERS = 'TLS_AES_256_GCM_SHA384:kECDHE'

at the beginning of waitdlg.py.

My main problem with finding the correct ciphers was that I thought www.curseforge.com was the relevant server but it's not. Downloads come from edge.forgecdn.net which accepts only TLS 1.2 and only few ciphers.

Maybe patching waitdlg.py would be a good idea? kECDHE is the relevant cipher.
@ephraim @timwienk ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant