Bad status line 'Invalid method encountered'

Abierto
#516 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
12/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
kafka, python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
1.9k
Forks
205
Merge medio
2 h 2 min
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de faust-streaming/faust

Todos los issues de faust-streaming/faust

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.