Apache + mod_wsgi + flask app: “Unable to get bucket brigade for request” error in logs

限于喜欢 提交于 2021-01-27 17:55:46

问题


I have a apache2/mod_wsgi/flask/python2.7 app. Sometimes such line appears in log file:

Partial results are valid but processing is incomplete: [client 45.132.96.124:34500] mod_wsgi (pid=13920): Unable to get bucket brigade for request., referer: https://my-site.com/some_url/

What is "bucket brigade" and what this error actually means? Is it apache error or wsgi server error? What does lead to this error? If this is some unhandled exception - how to handle it and where?

Thanks in advance.


回答1:


It usually means that the HTTP client making the request dropped the connection before the request content could all be read. If you are dealing with slow clients on mobile phone networks, it is not uncommon to see this.

As to whether you can handle it so it is ignored and nothing logged, I would need to see the complete context of the error message to see whether it is generated in conjunction with an IOError exception in Python. If it is, the Python code could catch it and deal with and return a 500 error response but not log anything.



来源:https://stackoverflow.com/questions/50513770/apache-mod-wsgi-flask-app-unable-to-get-bucket-brigade-for-request-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!