Nginx uwsgi (104: Connection reset by peer) while reading response header from upstream

前端 未结 8 2258
感动是毒
感动是毒 2020-12-12 23:34

Environment is Nginx + uwsgi.

Getting a 502 bad gateway error from Nginx on certain GET requests. Seems to be related to the length of the URL. In our particular cas

8条回答
  •  执笔经年
    2020-12-13 00:15

    This can happen if your request/response headers are quite large.

    To fix it, in /etc/uwsgi/apps-available/your-app.ini add buffer-size=65535

提交回复
热议问题