-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
SSL: UNEXPECTED_EOF_WHILE_READING #3360
Comments
Please don't use screenshots. They're not searchable and folks who rely on screen readers cannot interpret them. Please instead copy and paste the plain text of the images if you want help |
Edited, thanks @sigmavirus24 |
@hanunes In order to recreate the conditions for this error we either need a public endpoint/host or a packet capture, could you provide either of those so we can see why this is happening? |
Also this seems similar to #3100 |
Hi, I will definitely try to get a packet capture going. Will update here one I do. |
You can find the packet capture below. Let me know if there's anything else I can provide. |
it is similar to #3100, it also closed connection after ClientHello. Maybe it's because the server doesn't support the options that the client requests. #3100 Issue failed to support the CipherSuit requested by the client on the server. I'm guessing it's similar in your case. If you check the CipherSuit when the connection was successful and add this, you can solve it. If there is a wire-shark packet when the connection was successful, you can refer to it. I looked for ways to update sslcontext in requests and I'm leaving a link below for you to find and refer to the following. https://requests.readthedocs.io/en/latest/user/advanced/#example-specific-ssl-version |
Subject
When trying to perform a HTTPS GET request with the requests library, I get the EOF error above. By pinning urllib3 to an older version (1.x), all works as expected. The endpoint is using a self-signed certificate.
Environment
OS Linux-5.10.0-19-amd64-x86_64-with-glibc2.36
Python 3.11.4
OpenSSL 3.0.11 19 Sep 2023
urllib3 2.2.1
Steps to Reproduce
Failure script
Successful script
Expected Behavior
Would expect a 200 OK response from the server.
Actual Behavior
EOF error
The text was updated successfully, but these errors were encountered: