This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
starlette < 0.17.0 doesn't give exception tracebacks when testing app #4154
Labels
You can continue the conversation there. Go to discussion →
First Check
Commit to Help
Example Code
Description
Run the pytest suite, an exception is raised, causing a nonsensical traceback. This nonsensical traceback is generated by
starlette==0.16.0
.It has been resolved in
starlette==0.17.0
partially; enough that we actual get information about the original exception. FastAPI has not yet however released a version which depends onstarlette==0.17.0
, meaning we cannot yet use it through Python package managers which depend on version resolution.If you run the aforementioned example, you will see exactly what I mean. You end up getting exceptions purely about anyio failing and not the original exception; essentially hiding the real cause of the test failure.
It currently emits a
RuntimeError("No response returned.")
Operating System
Linux
Operating System Details
Arch Linux
FastAPI Version
0.70.0
Python Version
3.9.5
Additional Context
No response
The text was updated successfully, but these errors were encountered: