Log Error 400, message=“Bad status line ‘Expected CRLF after version’”

Hi to all,

I’m running the latest Home Assistant in a VM on a Proxmox server (i5 6400, 16gb RAM) and it was running quite fine until latest update.

After upgrading from 2023.4.6 to 2023.5.2 I started getting this error in the logs:

Logger: aiohttp.server
Source: /usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py:403
First occurred: 09:02:50 (5199 occurrences)
Last logged: 09:28:29
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 'Expected CRLF after version'"

At the moment eveything seems to be working fine but the number of occurrences of the error keeps increasing significantly every time I check the logs.

Is anyone else having the same problem?
Any idea what could be the cause?

Thank you in advance

Federico

Same here. We should log an issue, but I have no idea where to log it, but I will log it under core.

Logger: aiohttp.server
Source: /usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py:403
First occurred: 11:20:43 AM (23 occurrences)
Last logged: 12:29:15 PM

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 'Expected CRLF after version'"

Issue 93118

I, also, found this issue and it appears it is an issue if you have Hikvision devices with an older firmware.

Hikvision Firmware Issue