简体   繁体   English

Apache + mod_wsgi + flask应用程序:日志中出现“无法获取请求的存储桶旅”错误

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

I have a apache2/mod_wsgi/flask/python2.7 app. 我有一个apache2 / mod_wsgi / flask / python2.7应用程序。 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? 是apache错误还是wsgi服务器错误? What does lead to this error? 是什么导致此错误? If this is some unhandled exception - how to handle it and where? 如果这是一些未处理的异常-如何处理它以及在何处?

Thanks in advance. 提前致谢。

It usually means that the HTTP client making the request dropped the connection before the request content could all be read. 通常,这意味着发出请求的HTTP客户端在全部读取请求内容之前已断开连接。 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. 至于是否可以处理它,使其被忽略且不记录任何内容,我将需要查看错误消息的完整上下文,以查看它是否与Python中的IOError异常一起生成。 If it is, the Python code could catch it and deal with and return a 500 error response but not log anything. 如果是这样,Python代码可以捕获并处理并返回500错误响应,但不记录任何内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM