Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aiohttp.server tuple index out of range error on 0.60 #11208

Closed
shortbloke opened this issue Dec 18, 2017 · 2 comments
Closed

aiohttp.server tuple index out of range error on 0.60 #11208

shortbloke opened this issue Dec 18, 2017 · 2 comments

Comments

@shortbloke
Copy link
Contributor

shortbloke commented Dec 18, 2017

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version): 0.60

Python release (python3 --version): 3.5.3

Component/platform: aiohttp.server

Description of problem:
Since updating from 0.59.2 to 0.60 this error has started appearing in my logs. The first message appears 1 minute after starting home assistant, with repeats appearing often in the logs.

Expected:
No error.

Problem-relevant configuration.yaml entries and steps to reproduce:
configuration files: https://github.com/shortbloke/home_assistant_config

Traceback (if applicable):

2017-12-18 14:11:56 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/srv/hass/lib/python3.5/site-packages/aiohttp/web_protocol.py", line 410, in start
    resp = yield from self._request_handler(request)
  File "/srv/hass/lib/python3.5/site-packages/aiohttp/web.py", line 325, in _handle
    resp = yield from handler(request)
  File "/srv/hass/lib/python3.5/site-packages/aiohttp/web_middlewares.py", line 93, in impl
    return (yield from handler(request))
  File "/srv/hass/lib/python3.5/site-packages/homeassistant/components/http/ban.py", line 58, in ban_middleware
    return (yield from handler(request))
  File "/usr/lib/python3.5/asyncio/coroutines.py", line 213, in coro
    res = yield from res
  File "/usr/lib/python3.5/asyncio/coroutines.py", line 213, in coro
    res = yield from res
  File "/srv/hass/lib/python3.5/site-packages/homeassistant/components/http/__init__.py", line 430, in handle
    result = yield from result
  File "/srv/hass/lib/python3.5/site-packages/homeassistant/components/frontend/__init__.py", line 485, in get
    _is_latest(self.js_option, request)
  File "/srv/hass/lib/python3.5/site-packages/homeassistant/components/frontend/__init__.py", line 597, in _is_latest
    return version and useragent.browser.version[0] >= version
IndexError: tuple index out of range
@shortbloke shortbloke changed the title aiohttp.server tuple index out of range error on 0.60 aiohttp.server tuple index out of range error on 0.60 every 5 minutes Dec 18, 2017
@shortbloke shortbloke changed the title aiohttp.server tuple index out of range error on 0.60 every 5 minutes aiohttp.server tuple index out of range error on 0.60 Dec 18, 2017
@fabaff
Copy link
Member

fabaff commented Jan 16, 2018

Issue still present in 0.61?

@shortbloke
Copy link
Contributor Author

shortbloke commented Jan 16, 2018

@fabaff Since updating to 0.61 I don't see that exact regular error. So it appears to be fixed.

I'm still getting the error below (tracked in issue: #11209)

2018-01-16 12:11:55 ERROR (MainThread) [aiohttp.access] Error in logging
Traceback (most recent call last):
  File "/srv/hass/lib/python3.5/site-packages/aiohttp/helpers.py", line 554, in __get__
    return inst._cache[self.name]
KeyError: 'remote'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/hass/lib/python3.5/site-packages/aiohttp/helpers.py", line 521, in log
    for key, value in fmt_info:
  File "/srv/hass/lib/python3.5/site-packages/aiohttp/helpers.py", line 513, in <genexpr>
    for key, method in self._methods)
  File "/srv/hass/lib/python3.5/site-packages/aiohttp/helpers.py", line 473, in _format_a
    ip = request.remote
  File "/srv/hass/lib/python3.5/site-packages/aiohttp/helpers.py", line 556, in __get__
    val = self.wrapped(inst)
  File "/srv/hass/lib/python3.5/site-packages/aiohttp/web_request.py", line 321, in remote
    peername = transport.get_extra_info('peername')
  File "/usr/lib/python3.5/asyncio/sslproto.py", line 306, in get_extra_info
    return self._ssl_protocol._get_extra_info(name, default)
  File "/usr/lib/python3.5/asyncio/sslproto.py", line 546, in _get_extra_info
    return self._transport.get_extra_info(name, default)
AttributeError: 'NoneType' object has no attribute 'get_extra_info'

But will open a new issue for that.

@home-assistant home-assistant locked and limited conversation to collaborators May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants