uwsgi + nginx + flask: upstream prematurely closed

后端 未结 8 1958
暗喜
暗喜 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:00

    It seems many causes can stand behind this error message. I know you are using uwsgi_pass, but for those having the problem on long requests when using proxy_pass, setting http-timeout on uWSGI may help (it is not harakiri setting).

提交回复
热议问题