uvicorn swallows exceptions from h11 #2650
Unanswered
sschnabe
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For requests with large headers (above 16kb) h11 throws an exception in h11/_connection.py#L488. This exception is catched in uvicorn/protocols/http/h11_impl.py#L178 and the log line
Invalid HTTP request received.
is logged. The error with useful message from h11 is hidden. I would expect the exception is logged so i can see why the request was invalid.Should i create an issue and/or pr?
PS: i know i can increase the header buffer with
--h11-max-incomplete-event-size
Beta Was this translation helpful? Give feedback.
All reactions