home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.78k stars 30.04k forks source link

[aiohttp.server] Error handling request #126831

Open jtsvba opened 1 day ago

jtsvba commented 1 day ago

The problem

I am seeing this error message in my Home Assistant log very frequently (basically every minute):

2024-09-26 15:38:20.641 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 362, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "aiohttp/_http_parser.pyx", line 563, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
  Invalid method encountered:

    b'\x16\x03\x03'
      ^

A quick Google tells me this has something to do with HTTPS, but it's unclear to me what exactly. Especially since I'm using Nabu Casa.

What version of Home Assistant Core has the issue?

core-2024.9.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

I am using Nabu Casa.

joostlek commented 1 day ago

Some device is accessing your instance over https, while HA expects it to be http since SSL hasnt been set up. Probably something along those lines