uwsgi + nginx + flask: upstream prematurely closed

后端 未结 8 1950
暗喜
暗喜 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 13:56

    Replace uwsgi_pass 0.0.0.0:5002; with uwsgi_pass 127.0.0.1:5002; or better use unix sockets.

提交回复
热议问题