I'm making the following call to branch.io
req = requests.get('https://bnc.lt/m/H3XKyKB3Tq', verify=False)
SSLError: [Errno 1] _ssl.c:504: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
Jyo de Lys has identified the problem. The problem is described here and the solution is here. Following is what I did to get this working:
1. easy_install pyOpenSSL
2. easy_install ndg-httpsclient 3. easy_install pyasn1
If you're getting this error while using urllib2, you'll need to upgrade to python 2.7.9 or later too.