-
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
ChunkedEncodingError on mocked HEAD requests with urllib3 >= 2.0.0 #228
Comments
Same with |
* Allow PaginatedList to use metadata for pagination (#614) * Update `PaginatedList` Based on #605, `PaginatedList` could not process requests which return pagination info in the response body. This update checks for `Link` headers before checking the `meta` property in the response body. * Update based on review * Update pag list test with no header no next meta to run properly. Update changelog. --------- Co-authored-by: Matthew Emond <me@ucf.edu> * New Quizzes (#612) * Begin adding coverage for New Quizzes (WIP) * Finish New Quizzes endpoints * Pin urllib3 to <2 for tests due to issue with requests-mock. jamielennox/requests-mock#228 * Course Create Discussion Attach Files #621 (#622) * Fix issue where Course.create_discussion_topic doesn't accept attachment files * Add file tests for create_discussion_topic * Delete method for course and group pages (#624) * method delete group and course pages, update tests * format fix * Add Caitlin to authors. Add contribution to changelog. Formwatting tweaks. --------- Co-authored-by: Matthew Emond <me@ucf.edu> * Remove Jesse as codeowner. Add Matthew Jones and Brian Bennett * Add support for Python 3.11 (#625) * markdown styling tweak to be in line with prettier's defaults * Bump version to 3.2.0 --------- Co-authored-by: Brian <brian.bennett2@gmail.com> Co-authored-by: Caitlin Fabian <89735646+Caitlin-Fabian@users.noreply.github.com>
This is especially cumbersome since requests-mock's test suite seems to pass with urllib3-2 just fine, and you end up guessing why random packages suddenly started failing (e.g. a lot of OpenStack). |
In urllib3 v2 they default enforce_content_length to true. This fails now when you mock a request that doesn't have any data that can be partially read. Fixes: #228
In urllib3 v2 they default enforce_content_length to true. This fails now when you mock a request that doesn't have any data that can be partially read. Fixes: #228
In urllib3 v2 they default enforce_content_length to true. This fails now when you mock a request that doesn't have any data that can be partially read. Fixes: #228
In urllib3 v2 they default enforce_content_length to true. This fails now when you mock a request that doesn't have any data that can be partially read. Fixes: #228
released as 1.11.0 - thanks for the info and sorry it took me some time to fix it. |
thanks! |
Thanks! I have tested the new version against urllib3-2 and a few packages whose test suites have failed previously, and I think the problem's solved. I see some test failures from requests-cache, keystoneauth1 and python-glanceclient but they don't seem to be related to requests-mock. |
This code:
stopped working since urllib3 released version 2.0.2 two days ago (2.0.0 and 2.0.1 were yanked).
Here is how to reproduce:
but it works if we require an older version of urllib3:
The text was updated successfully, but these errors were encountered: