Aiohttp.server error handling request

Hello everyone!!!

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.
ip_ban_enabled: true
login_attempts_threshold: 3
use_x_forwarded_for: true

My internal and external url are set under settings – system – network
internal http://192.168.1.X:8123
external https:///

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/ 
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/", 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'"

What could this be? Please help me out.

Thank you!!!

I have the same issue than you. Hope somebody help us. :face_with_monocle:

1 Like

Please see the sticky post on how to format code (and other things).

1 Like