Closed AstraSerg closed 4 years ago
This looks like a bug, or rather a mismatched expectation between werkzeug (which states that the object passed to wrap_file()
must have a read()
method only) and uwsgi, which seems to want an actual file with fileno()
.
This blog suggests a potential work-around, which you might try.
Thanks a lot, it helped! And thank you for the great library! I could create PR to insert this info to your doc but didn't find where is it, sorry.
Glad that worked! If you'd like to add a note, we can maybe add a "troubleshooting" section to https://github.com/dcrosta/flask-pymongo/blob/master/docs/index.rst, I'd accept a PR for that.
Excellent, I'll do it.
Hi. I have data in the mongodb:
And trying to send it to browser:
But if I trying to get file with filename kot_accounts_2019-09-filtered.xlsx I'm getting the error:
What I'm doing wrong?