Bad status line 'Invalid method encountered'

オープン
#516 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

faust-streaming/faust のほかの issue

faust-streaming/faust の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。