Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.7k
🐛FixRuntimeError raised whenHTTPException has a status code with no content#5365
Conversation
codecovbot commentedSep 8, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## master #5365 +/- ##========================================= Coverage 100.00% 100.00% ========================================= Files 540 540 Lines 13936 13951 +15 =========================================+ Hits 13936 13951 +15
Help us with your feedback. Take ten seconds to tell ushow you rate us. Have a feature suggestion?Share it here. |
📝 Docs preview for commitafecf9b at:https://631a48f65533fb0233157a85--fastapi.netlify.app |
📝 Docs preview for commitf96a078 at:https://631a4cce339597069b76e096--fastapi.netlify.app |
📝 Docs preview for commitc357017 at:https://631a4e7d882b77006ea53e5b--fastapi.netlify.app |
Kludex left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Yep, same idea as what we have in Starlette:https://github.com/encode/starlette/blob/bc61505faef15b673bf4bf65db4927daa354d6b8/starlette/middleware/exceptions.py#L99-L104
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
iudeen commentedSep 8, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I was able to find the bug by adding debug points to And thus, the code was referred from Starlette! (Sorry, should have mentioned) |
📝 Docs preview for commitf26af44 at:https://631a5fedd66a3a17d38dcc68--fastapi.netlify.app |
📝 Docs preview for commitfda6d88 at:https://631a9d31d66a3a47438dc97b--fastapi.netlify.app |
JarroVGIT left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM
RuntimeError raised whenHTTPException has a status code with no contenttiangolo commentedSep 11, 2022
Awesome, thanks for the fix@iudeen! 🍰 🚀 And thanks for the reviews and comments@Kludex,@JarroVGIT,@BilalAlpaslan 🙇 ☕ |
Uh oh!
There was an error while loading.Please reload this page.
Fixes/related to#4949 (comment)
Please advice if this approach is correct one.
Suggestions welcome!