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

Error with access logging and unix socket #1091

Closed
gleb-chipiga opened this issue Aug 16, 2016 · 2 comments
Closed

Error with access logging and unix socket #1091

gleb-chipiga opened this issue Aug 16, 2016 · 2 comments
Labels

Comments

@gleb-chipiga
Copy link
Contributor

gleb-chipiga commented Aug 16, 2016

I run the server on unix socket with asyncio 0.22.5, python 3.5.2 and get the following error:

aiohttp.access ERROR 2016-08-16 13:46:34,653: Error in logging
Traceback (most recent call last):
  File "/var/www/polygon_venv/lib/python3.5/site-packages/aiohttp/helpers.py", line 405, in log
    [message, environ, response, transport, time]))
  File "/var/www/polygon_venv/lib/python3.5/site-packages/aiohttp/helpers.py", line 392, in _format_line
    return tuple(m(args) for m in self._methods)
  File "/var/www/polygon_venv/lib/python3.5/site-packages/aiohttp/helpers.py", line 392, in <genexpr>
    return tuple(m(args) for m in self._methods)
  File "/var/www/polygon_venv/lib/python3.5/site-packages/aiohttp/helpers.py", line 348, in _format_a
    return args[3].get_extra_info('peername')[0] if args[3] is not None \
IndexError: index out of range

With disabled access log or without unix socket problems not observed.

@popravich
Copy link
Member

Duplicate of #816 (#816 (comment))
fixed in master

@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants