uwsgi + nginx + flask: upstream prematurely closed

后端 未结 8 1969
暗喜
暗喜 2020-12-16 13:28

I created an endpoint on my flask which generates a spreadsheet from a database query (remote db) and then sends it as a download in the browser. Flask doesn\'t throw any er

8条回答
  •  难免孤独
    2020-12-16 14:18

    In my case, problem was nginx was sending a request with uwsgi protocol while uwsgi was listening on that port for http packets. So either I had to change the way nginx connects to uwsgi or change the uwsgi to listen using uwsgi protocol.

提交回复
热议问题