[aiohttp.server] Error handling request - mobile hass is doing this?

Hello,

I want to debug this error

2024-06-23 22:07:02.248 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 350, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
Invalid method encountered:
b'\x16\x03\x01\x02'
^

What do you suggest?
I know it’s some client trying to request SSL query to hass server.
How can I debug this to get client IP?

Only corelation I’ve found in nginx logs is this (a lot of logs)

2024/06/21 23:53:42 [error] 4042#4042: *28398 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.153, server: homeassistantlocal.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "homeassistantlocal.duckdns.org"

Problem is, this client is my phone and url suggests HASS mobile application.

So I’m thinking is this possible that hass mobile app is trying to query “homeassistant.local” host with plain http? This was my previous configuration and upstream server suggests nginx is trying to query homeassistant.local with containers internal network.

If you just upgraded HA you may have a client running that needs to be refreshed to get the updated UI

Nope. I’ve reconfigured for ssl a few months ago. The only nginx logs suggesting http query comes from hass mobile clients on two separate phones.