Uwsgi: not working with Flask send_file()

Created on 29 Mar 2017  路  1Comment  路  Source: unbit/uwsgi

I am getting the following error when using Flask send_file() in python 3.

return environ.get('wsgi.file_wrapper', FileWrapper)(file, buffer_size)

SystemError: <built-in function uwsgi_sendfile> returned a result with an error set

Most helpful comment

When I use --wsgi-disable-file-wrapper things work. This is with the newest version of Flask.

>All comments

When I use --wsgi-disable-file-wrapper things work. This is with the newest version of Flask.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PAStheLoD picture PAStheLoD  路  4Comments

xrmx picture xrmx  路  5Comments

yoichi picture yoichi  路  7Comments

bhaskarsai picture bhaskarsai  路  4Comments

vlcinsky picture vlcinsky  路  3Comments