-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Error in requests version 2.31.0 with urllib3 2.2.1 and 2.10 raise IncompleteRead(self._fp_bytes_read, self.length_remaining) #6676
Comments
I have installed an empty enviroment with conda and requests: python 3.12.2 And we have no errors, when I install urllib3 2.1.0, the program crashes, Below is a simple test program that crashes. python 3.12.2
This is the error I get: traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
You must never call |
We have updated from urllib3 1.26 to urllib3 2.xx and now we have same requests with this error.
lib/python3.10/site-packages/urllib3/response.py", line 833, in _raw_read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
urllib3.exceptions.IncompleteRead: IncompleteRead(119510 bytes read, -59755 more expected)
We have moved to version 1.26.18 and it works correctly with the same requests. We have done several tests and there are some requests that always fail with urllib3 version 2.1 or 2.2.1 and work correctly with version 1.26.
The text was updated successfully, but these errors were encountered: