Ingress error help

Any idea what is causing this?



Logger: aiohttp.server
Source: components/hassio/ingress.py:189
First occurred: 8 January 2021, 23:50:31 (1 occurrences)
Last logged: 8 January 2021, 23:50:31
Error handling request

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/hassio/ingress.py", line 57, in _handle
    return await self._handle_request(request, token, path)
  File "/usr/src/homeassistant/homeassistant/components/hassio/ingress.py", line 121, in _handle_request
    source_header = _init_header(request, token)
  File "/usr/src/homeassistant/homeassistant/components/hassio/ingress.py", line 189, in _init_header
    connected_ip = ip_address(request.transport.get_extra_info("peername")[0])
TypeError: 'NoneType' object is not subscriptable

“peername” appears nowhere in my config. This error seems to occur even when I’m not looking at the frontend.

Same error here… :frowning:

Sometimes it is a bit frustrating because seems to miss the reel “entry point” of the error in the traceback log.

The errors appears… ok well… but we don’t know from where and following which action.

Mine appears directly after a restart of HA (Configuration > Server Controls > Server management > Restart)

The error is related to “aiohttp.server”, I guess a lot of integration/service/call use this… therefore we can conclude : “an error occurs” :roll_eyes:

Likewise when I first noticed it. Though now it is occurring days after a restart.

Anyone found how to fix it?

Same Error after every restart.
No fix so far?

Same here…

Anybody had any joy yet?

By my side, this error seems to be gone since several months (2021.4 or 2021.5 release… i don’t remember exactly when).

I found there was a great improvement in terms of trace for debug/log messages. Maybe the error are less generic now than before… with better “source” tracking.