scrapy: sslv3 alert handshake failure when making a request
Hi there, I recently upgraded to the latest scrapy and on some sites SSL enabled sites I get an exception when trying to make requests to it, while on previous scrapy versions I didn’t have this issue. The issue can be seen by making a request with scrapy shell:
scrapy shell "https://www.gohastings.com/"
The error I get is:
Retrying <GET https://www.gohastings.com/> (failed 1 times): <twisted.python.failure.Failure OpenSSL.SSL.Error: ('SSL routines', 'SSL3_READ_BYTES', 'sslv3 alert handshake failure'), ('SSL routines', 'SSL3_WRITE_BYTES', 'ssl handshake failure')>
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 36 (18 by maintainers)
Well I have no idea what’s going on now.
I’ve uninstalled cryptography and pyopenssl and reinstalled them with and without brew prefix flags and pOpenSSL is linking to the newer homebrew ssl versions and everything is working.
So, to anybody who’s hitting this bug:
will return one of the following:
If it’s OpenSSL version
0.9.8
then you need to try again.So basically you can probably ignore my previous two posts.
Here ya go: https://github.com/scrapy/scrapy/pull/1909