This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
FastAPI 0.87.0 (and in particular starlette 0.21.0) broke query string parsing in TestClient (starlette 0.22.0 fixes it!) #5674
Labels
You can continue the conversation there. Go to discussion →
First Check
Commit to Help
Example Code
Description
We have a test that does something like this:
With FastAPI 0.86 everything works. Starting from 0.87 (which uses
starlette
0.21.0) our endpoint errors with:If I force the installation of
starlette
0.22.0 and rerun the test, everything works. This is a known bug ofstarlette
0.21.0 and it has been fixed in 0.22.0:Solution
Bump
starlette
version in FastAPI to 0.22.0Note
I can make this small PR with the update as soon as you confirm/acknowledge this issue.
Operating System
macOS
Operating System Details
No response
FastAPI Version
0.87.0
Python Version
3.10.0
Additional Context
No response
The text was updated successfully, but these errors were encountered: