lcurse
lcurse copied to clipboard
cfscrape cannot solve captchas - SSLv3 handshake failure
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.
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.
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 ?