I’m getting the following entry repeatedly every seconds in “Home Assistant Core”. I don’t know what is causing it. There are no other logs in “Home Assistant Core”. Log entries for Supervisor and other categories seem to be normal.
I have 11 Xiaomi zigbee sensors, using ZHA and Nortek HUSBZB-1 usb-stick. They are all working fine. I have one automation that is also working correctly.
Could you please help me figure out what is causing these logs!
The log entries:
Log Details (ERROR)
Logger: aiohttp.server
Source: /usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py:405
First occurred: 13:42:39 (2 occurrences)
Last logged: 13:42:39
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 334, 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'"
SOLVED
I figured out that these log-entries were for incoming http-requests (I would like to suggest this logging distinguish between incoming and outgoing traffic). By eliminating other possibilites (port-forwarding on the router, all phones, etc), I found out that this was coming from my Ubuntu dev-machine. Turns out that I had https-page open for the internal ip-address (that only accepts http) and somehow it was continously trying to connect.
I have been running my installation for a while now but am getting strange errors in my logs.
I am using DUCK dns for an SSL connection. NGINX Home Assistant SSL proxy I use to get an https connection from outside.
I do port forwarding via port 443 external to port 443 internal to my ip address running home assistant.
These are my http parameters.
http:
ip_ban_enabled: true
login_attempts_threshold: 3
use_x_forwarded_for: true
trusted_proxies:
172.30.33.0/24
My internal and external url are set under settings – system – network
internal http://192.168.1.X:8123
external https:///xxx.duckdns.org
Everything works perfectly both internal and external. The only thing I see are many of the following errors when I connect back through my internal url.
Logger: aiohttp.server
Source: /usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py:403
First occurred: 09:22:52 (44 occurrences)
Last logged: 09:22:57
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’”
I have the same problem like you.
Can any kindly soul help us, please?
This is my error:
"Logger: aiohttp.server
Source: /usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py:403
First occurred: 14:37:07 (31 occurrences)
Last logged: 14:42:04
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’”"