Flask app crashes when using send_file() with BytesIO object in debug mode #5905
Replies: 1 comment
|
I can't reproduce this issue with the example provided. Multiple requests result in successful responses. There's something else going on beyond what you've shown. |
0 replies
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.
When using
send_file()with aBytesIOobject whiledebug=True, the application raises aValueErroron the second request to the same endpoint.Environment:
Steps to Reproduce:
python app.pyhttp://127.0.0.1:5000/downloadonce (works fine)Expected Behavior:
The file should download successfully on every request.
Actual Behavior:
All reactions