lcurse icon indicating copy to clipboard operation
lcurse copied to clipboard

cfscrape cannot solve captchas - SSLv3 handshake failure

Open ilu33 opened this issue 5 years ago • 2 comments

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 avatar Nov 19 '19 01:11 ilu33

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 https://github.com/Anorov/cloudflare-scrape/issues/310 - which is the exact problem I'm having. I'm just wondering why this still doesn't happen under Debian9.

ilu33 avatar Dec 12 '19 05:12 ilu33

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 ?

ilu33 avatar Dec 13 '19 13:12 ilu33