You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by azogue November 15, 2022
After the change to httpx for the TestClient in v0.21.0 (), the query parameters are not properly encoded? when sending requests with it, and strings are corrupted when received in the endpoints.
The example app works as expected if called from the SwaggerUI or from another python process using a plain httpx.Client, so it appears something broke with the new wrapping for TestClient 🥲
I just checked that removing both unquote operations for the netloc and the query parts does work as expected and does not break any of the tests 🥳 (609 passed, 2 xfailed in 2.41s in quick venv with py3.10)
Discussed in #1946
Originally posted by azogue November 15, 2022
After the change to
httpx
for theTestClient
in v0.21.0 (), the query parameters are not properly encoded? when sending requests with it, and strings are corrupted when received in the endpoints.Quick example to show the problem:
The example app works as expected if called from the SwaggerUI or from another python process using a plain
httpx.Client
, so it appears something broke with the new wrapping forTestClient
🥲Details
First issued in fastapi repo: fastapi/fastapi#5646, before checking the
TestClient
comes from here 🙈Environment:
The text was updated successfully, but these errors were encountered: