Closed chrismaille closed 1 year ago
@chrismaille Was this issue fixed in a different way? I've seen the related PR was closed and not merged
@mongkok
The same error occured in my code. Was this solution worked ?
The issue was fixed, please try the latest release 0.3.2.
Dependencies:
Traceback
When trying to open
http://localhost:XXXX/docs
:The issue (I think)
https://github.com/mongkok/fastapi-debug-toolbar/blob/3552b0bbb8e1a86a4f5eaaf214e6916d52c941ef/debug_toolbar/middleware.py#L84
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.