Http errors, can't access addon web pages

Hi there,

I’ve no idea how to resolve this. Please help me to troubleshoot?

Whenever I click on the icon on the left for an addon that has a web ui (ESPHome, SSH/terminal, Glances, File Editor, Portainer, Snapshots) I see the page start to load (blue title bar) then I get a white screen with an error message “# 500 Internal Server Error Server got itself in trouble”.

Each time I try an addon web ui, the log shows:

21-07-30 14:05:01 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "aiohttp/_helpers.pyx", line 24, in aiohttp._helpers.reify.__get__
    return inst._cache[self.name]
KeyError: 'cookies'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/aiohttp.py", line 123, in sentry_app_handle
    reraise(*_capture_exception(hub))
  File "/usr/local/lib/python3.9/site-packages/sentry_sdk/_compat.py", line 54, in reraise
    raise value
  File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/aiohttp.py", line 113, in sentry_app_handle
    response = await old_handle(self, request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 137, in system_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 203, in token_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/utils.py", line 89, in wrap_api
    return await method(api, *args, **kwargs)
  File "/usr/src/supervisor/supervisor/api/ingress.py", line 95, in handler
    session = request.cookies.get(COOKIE_INGRESS)
  File "aiohttp/_helpers.pyx", line 26, in aiohttp._helpers.reify.__get__
    val = self.wrapped(inst)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_request.py", line 514, in cookies
    parsed = SimpleCookie(raw)  # type: SimpleCookie[str]
  File "/usr/local/lib/python3.9/http/cookies.py", line 483, in __init__
    self.load(input)
  File "/usr/local/lib/python3.9/http/cookies.py", line 532, in load
    self.__parse_string(rawdata)
  File "/usr/local/lib/python3.9/http/cookies.py", line 596, in __parse_string
    self.__set(key, rval, cval)
  File "/usr/local/lib/python3.9/http/cookies.py", line 488, in __set
    M.set(key, real_value, coded_value)
  File "/usr/local/lib/python3.9/http/cookies.py", line 353, in set
    raise CookieError('Illegal key %r' % (key,))
http.cookies.CookieError: Illegal key 'ys-api/mpegts/mux'

I’m not sure that the following is linked, but eventually the supervisor stops responding, the restart configuration switch won’t respond, and an SSH session command to reboot the host times out.

Have you tried clearing browser cache/cookies?

OR

Use another browser and try to access the addons webpage.

Deleting cookies fixed it (Chrome). Thanks.