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.access error when closing browser #11209

Closed
shortbloke opened this issue Dec 18, 2017 · 1 comment
Closed

aiohttp.access error when closing browser #11209

shortbloke opened this issue Dec 18, 2017 · 1 comment

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.access

Description of problem:
When closing a browser window an error is recorded to the log file

Expected:
No errors reported when closing a browser

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

  1. Start Browser (Google Chrome Version 63.0.3239.84 (Official Build) (64-bit))
  2. Navigate and logon to HASS site
  3. Closed the browser window
  4. Check the home-assistant.log file

Traceback (if applicable):

2017-12-18 14:21:20 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 319, 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'
@MartinHjelmare
Copy link
Member

Looks like duplicate of #9762.

@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