-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
add_middleware causes exceptions to not be raised/handled silently #5173
Comments
Upgrading to 0.79.0 the issue goes away, not sure if this was fixed intentionally (I couldn't find a closed issue) or inadvertently in which case might still be an issue elsewhere |
What's the behavior if you add the Middleware to both of your apps? 🤔 |
It was solved on Starlette. |
|
Issue is back see my versions below, should I open an issue on starlette? fastapi==0.88.0 |
You can open a discussion on starlette. |
Opened discussion in starlette |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
First Check
Commit to Help
Example Code
Description
When exceptions are raised on a subapp, the exceptions are not propagated all the way to see in console
In the example code
/info raises an exception and the full stacktrace is seen in console
/private/info does not raise the exception and only
INFO: 127.0.0.1:56308 - "GET /info HTTP/1.1" 500 Internal Server Error
is shown in consoleOperating System
Windows
Operating System Details
No response
FastAPI Version
0.74.0
Python Version
3.8.10
Additional Context
uvicorn==0.17.6
The text was updated successfully, but these errors were encountered: