question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sslv3 alert handshake failure when making a request

See original GitHub issue

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')>

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:36 (18 by maintainers)

github_iconTop GitHub Comments

4reactions
kneufeldcommented, Apr 6, 2016

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:

scrapy version -v | grep pyOpenSSL

will return one of the following:

pyOpenSSL : 16.0.0 (OpenSSL 1.0.2g  1 Mar 2016)
pyOpenSSL : 16.0.0 (OpenSSL 0.9.8zg 14 July 2015)

If it’s OpenSSL version 0.9.8 then you need to try again.

rm -rf ~/Library/Caches/pip
pip uninstall cryptography pyopenssl
env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography pyopenssl

So basically you can probably ignore my previous two posts.

2reactions
kneufeldcommented, Apr 7, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

ssl - Solving sslv3 alert handshake failure when trying to use a ...
It works when I try with a received a test certificate including a private key from the service (self signed certificate). But when...
Read more >
SSL3_READ_BYTES:sslv3 alert handshake failure - How to fix?
SSLV3 alert handshake failure occurs when a client and server cannot establish communication using the TLS/SSL protocol.
Read more >
How to Fix “SSL Handshake Failed” & "Cloudflare 525" Error
An SSL Handshake Failure or Error 525 means that the server and browser were unable to establish a secure connection. This can happen...
Read more >
Troubleshooting sslv3 alert handshake failure and tlsv1 alert ...
Your server is attempting a secure connection to using the outdated SSL protocol. As this is no longer secure, most providers now require ......
Read more >
TLS/SSL Handshake Failures | Apigee Edge
A TLS/SSL handshake failure occurs when a client and server cannot establish communication using the TLS/SSL protocol. When this error occurs in Apigee...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found