ssl.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol

Piyush Verma 114piyush at gmail.com
Fri Dec 15 14:06:52 EST 2017


Getting SSL error while connecting from httplib.HTTPSConnection.

Any help would be appreciated.

    self.connection.request(method, request, payload, self.headers)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py",
line 1053, in request
    self._send_request(method, url, body, headers)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py",
line 1093, in _send_request
    self.endheaders(body)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py",
line 1049, in endheaders
    self._send_output(message_body)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py",
line 893, in _send_output
    self.send(msg)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py",
line 855, in send
    self.connect()
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py",
line 1274, in connect
    server_hostname=server_hostname)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py",
line 352, in wrap_socket
    _context=self)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py",
line 579, in __init__
    self.do_handshake()
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py",
line 808, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:590)

Regards,
~Piyush
Facebook <https://www.facebook.com/piyushkv1> Twitter
<https://twitter.com/SocializePiyush>



More information about the Python-list mailing list