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.

SSLError: [Errno bad handshake] (32, 'EPIPE')

See original GitHub issue

I m trying to implement httpretty to mock a https endpoint. I m getting this error.

  File "util/requests_client.py", line 18, in http_do
    verify=False
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 464, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 576, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 431, in send
    raise SSLError(e, request=request)
SSLError: [Errno bad handshake] (32, 'EPIPE')
-------------------- >> begin captured logging << --------------------
requests.packages.urllib3.connectionpool: INFO: Starting new HTTPS connection (1): gateway.agms.com
--------------------- >> end captured logging << ---------------------

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:9
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
clintonbcommented, Jun 21, 2016

I replaced httpretty with the responses library.

4reactions
jrpope2014commented, Mar 11, 2016

I second Clinton’s question. ndg-httpsclient is part of a requests[security] update that we need in order for some code to function properly, but we have several tests that use httpretty, so our tests break upon installing this package. Do we know about how long it would take such an update to be merged?

Read more comments on GitHub >

github_iconTop Results From Across the Web

GeoIP not Updating - OPNsense Forum
SSLError : ("bad handshake: SysCallError(32, 'EPIPE')",) During handling of the above exception, another exception occurred:
Read more >
Python SSL Bad Handshake - Stack Overflow
According to SSLLabs the server has a terrible setup. ... no longer gets a Unexpected EOF it gets another error: certificate verify failed...
Read more >
Bug #1677031 “Scenario GlanceImages ... - Launchpad Bugs
Issue: Rally hangs and doesn't throw any exceptions. This issues happens when I used URL address for image_location:
Read more >
Source Code for Module web2py.gluon.wsgiserver
105 106 The 'errno' module contains different global constants depending on ... socket_errors_to_ignore = plat_specific_errors( 118 "EPIPE", 119 "EBADF", ...
Read more >
Implementation/HTTP.c - LYNX
On exit, * returns >=0 If no error, a good socket number * <0 Error. ... long SSLerror; CTRACE((tfp, "HTTP: Unable to complete...
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