-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All queries fail with SSLError #96
Comments
Cannot repro in python 2.7.12 on ubuntu16, latest develop code, hitting live endpoint:
However, using the same commands above after |
Forgot to add that the above was on a Mac. I just checked again in Linux and I get the same |
I think this is related to ADS updating their certs recently and some interaction with local cert stores; Cannot repro in a vanilla ubuntu docker container.
|
I confirm my Mac also fails for the latest build. Rolling back requests to |
Fails for sandbox, not live. |
I had a quick look, it seems there is an SSL issue somewhere in HTTPretty: >>> import requests
>>> import HTTPretty as hp
>>> hp.enable()
>>> hp.register_uri(hp.GET, 'https://foo.com', body='''{"return": "success"}''')
>>> requests.get('https://foo.com').json()
....
495 except (_SSLError, _HTTPError) as e:
496 if isinstance(e, _SSLError):
--> 497 raise SSLError(e, request=request)
498 elif isinstance(e, ReadTimeoutError):
499 raise ReadTimeout(e, request=request)
SSLError: ('bad handshake: WantWriteError()',) It may be related to this issue: gabrielfalcao/HTTPretty#242 but I didn't dig too deep. There is a PR open to fix this, but they're waiting on gabrielfalcao to merge it. |
Closing; if this is on-going we can investigate more |
Seems fine for me on Mac OS, python2.7, python3.5 and Linux python2.7, python3.4. |
Hi Andy,
Just installed
ads
, but can't seem to do anything yet. All the queries I try (even using sandbox) end up with aSSLError: ('bad handshake: WantWriteError()',)
.Expected Behavior
As per the documentation, I expect that the following will work:
Current Behavior
But I get the following traceback:
followed by a few other
SSLError: ('bad handshake: WantWriteError()',)
errors.Your Environment
The text was updated successfully, but these errors were encountered: