-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
SSLError HTTPSConnectionPool Max retries exceeded with url: /oauth/token Caused by SSLError('bad handshake: SysCallError(0, None)) #4246
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
Comments
Thanks for this report! I think we need to see a bit more of the actual Requests code. It seems like the server is rejecting the handshake but it's hard to know more without seeing your requests call. |
Hi Lukasa, The code below is being called by
More deeper
Closer look to exception's traceback
Any thoughts? Thanks |
Hrm, it's not super apparent what's happening here. |
Problem solved! I was thinking that is something related with certificates and started to look into
and it works now. Thank you for all your assistance. You can mark issue as solved 😄 |
Thanks! |
@albayraktaroglu thanks :)! It was solved by |
EZ |
https://stackoverflow.com/q/24323858/13476428 This solution fixed the issue by syncing the openssl versions |
Just use verify=False to ignore the SSL.
|
@albayraktaroglu The solution is not working for me. i have upgraded to 18.0.0 but still getting error.
|
@albayraktaroglu Same story. Upgrading |
See my comment on May 14th. From what I get Python needs to reference the right version of openssl. To ensure that I uninstalled both python and openssl and followed the link for reinstallation |
Summary
The problem that I am having is showing up after user enters their credentials at the Auth0's lock screen. When I looked at Auth0 Dashboard's log section I can see users can login successfully ( I see both Success Exchange, Success Login ). Then call back function is triggering the callback call. At that point production and test(localhost) environments differs from each other.
In localhost I can see the status code 302 Found status code on the localhost but not in the production server. In production server I am seeing the status code 500 INTERNAL SERVER ERROR.
When I checked the server side I saw it was failing at the token line of the callback function
When I checked the credentials they all look what they are supposed to be. So in the server logs I am seeing this keywords in the servers.
I am thinking server might be rejecting the certificate or something and after seeing this link thought opening issue might be helpful.
Ubuntu 16.04, Python 2.7.12, certifi 2017.7.27.1
Expected Result
In the callback function returns token
token = get_token.authorization_code('AUTH0_CLIENT_ID', 'AUTH0_CLIENT_SECRET', code, 'AUTH0_CALLBACK_URL')
Actual Result
SSLError: HTTPSConnectionPool(host='my_domain.auth0.com', port=443): Max retries exceeded with url: /oauth/token (Caused by SSLError(SSLError('bad handshake: SysCallError(0, None)',
Reproduction Steps
System Information
This command is only available on Requests v2.16.4 and greater. Otherwise,
please provide some basic information about your system (Python version,
operating system, &c).
The text was updated successfully, but these errors were encountered: