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
h11._util.LocalProtocolError: Too little data for declared Content-Length when open FastAPI docs #10
Comments
chrismaille
added a commit
to chrismaille/fastapi-debug-toolbar
that referenced
this issue
Feb 19, 2022
* Fix h11._util.LocalProtocolError: Too little data for declared Content-Length when open FastAPI docs/swagger * Fix missing table error in unit tests, when sqlite drops table on memory after closing session. * Fix Generator-type Session dependencies not asserting AsyncExitStack. Use the settings `session_generators` option to pass the full python path for your generator: "foo.bar:my_db_session" * Do not show database credential on panels * Fix json encoding error using special UUID and datetime types in python * Show loguru logs in logging panel Resolves mongkok#10
Closed
@chrismaille |
The same error occured in my code. Was this solution worked ? |
Merged
The issue was fixed, please try the latest release 0.3.2. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dependencies:
Traceback
When trying to open
http://localhost:XXXX/docs
:The issue (I think)
fastapi-debug-toolbar/debug_toolbar/middleware.py
Line 84 in 3552b0b
On first iteration,
body
equals the correct body from response (b'<HTML CONTENT>'
), on second iterationbody
is empty (b''
). This empty body is use on the subsequent code, inserted on response, but line 97 never occurs.The text was updated successfully, but these errors were encountered: