-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
AttributeError: 'NoneType' object has no attribute 'headers' #17
Comments
I reproduced this bug Full exception:
It occurs in
I tested with:
In SNARE this exception is raised inside super init function:
How we should execute these requests? |
Maybe a first step could be looking at the header content. |
We can't catch this exception, but we can override handle_error function http://aiohttp.readthedocs.io/en/stable/server.html#aiohttp.server.ServerHttpProtocol.handle_error |
This bug also occurs if make the connection via telnet.
SNARE logs:
This exception is cached there: And exception occurs there: |
By the way aio-libs/aiohttp#889 We have no HTTP via telnet prefix and we have error in this place: So. message is None because telnet doesn't have HTTP prefix, server catches this exception and try to makes log:
Because arg[0] is a message and we try to access it's headers, but it is None! We can only try to pass to the TANNER the info, that we have error |
Possible solutions: Change logging in SNARE server http://aiohttp.readthedocs.io/en/stable/logging.html
Or compare message with None in |
Go for changing the logging in SNARE, we don't really want to mess with aiohttp. |
Mitigated with 8136a52 |
The text was updated successfully, but these errors were encountered: