Bad status line 'Invalid method encountered'

未关闭
#516 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
12/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
kafka, python

调研方向

The traceback fails inside aiohttp's HTTP parser (web_protocol.py data_received, _http_parser.pyx feed_data), so the bad bytes arrive on an HTTP port that Faust exposes, not on Kafka. Start by finding which request sends the malformed data, such as a health check or external probe, and why it crashes the consumer. Done means a reproduction, a fix or documented workaround, and a test that sends a malformed request.

由索引模型根据 Issue 内容生成。

描述

bug dependencies question

Has anyone faced this issue?

Checklist

  • I have included information about relevant versions
  • I have verified that the issue persists when using the master branch of Faust.

Steps to reproduce

The consumer works normally for a day or two and randomly i get this error in the log file and it crashes.

[2023-06-09 19:59:42,444] [1] [ERROR] Error handling request
Traceback (most recent call last):
	File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 332, in data_received
		messages, upgraded, tail = self._request_parser.feed_data(data)
	File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'"

Expected behavior

Error should not be thrown

Actual behavior

It crashes and stops consuming

Versions

  • Python version: 3.10
  • Faust version: 0.9.5
  • Operating system: Linux
  • Kafka version: 2.6.2
  • RocksDB version (if applicable)

The consumer is hosted through AWS ECS and the kafka brokers are hosted on Amazon MSK.

主要语言
Python
星标
1.9k
派生
205
平均合并
2 小时 2 分钟
30 天内合并 PR
1

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

faust-streaming/faust 的其他 Issue

查看 faust-streaming/faust 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。