-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
'None' in HTTP headers #2183
Comments
No idea how did you get it. Reproducible example would help very much. |
Multidict doesn't return None if key doesn't exist but some code might push Closing the issue. |
@asvetlov I'm also affected by this issue, and I'm 100% sure I don't explicitly alter response headers in my code (I don't think I even could because this happens in the
Using aiohttp 2.1.0 and python 3.5. The remote server seems to include some headers in its response, including three Since I got the exception in Sentry, I can provide some more information.
Do not hesitate if you need further information. Hope this helps. Thanks. |
I'm able to reproduce the issue. Fetch from https://reload.dk fails: it splits a header into two, one of them has None as a value. |
There are some new commits for http-parse, we should try latest c code |
It's not release yet.
Maybe you've missed correct processing of |
interesting. yes, multiple field callbacks are not supported |
@fafhrd91 have you a time for working on PR or should I take the duty? |
I'll fix it. |
Cool! Thanks! |
@nesdis @gilbsgilbs could you confirm if problem fixed in master? |
Thank you very much @fafhrd91 and @asvetlov for looking into this. Since I was not able to reproduce the issue locally, I cannot guarantee it fixes my use-case. Anyways, as soon as this is released, I'll deploy to production and after a while get some confidence on whether this is fixed or not. The issue reproduces a few times per week. |
Let's assume the problem is fixed by #2281 |
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. |
Long story short
Sometimes in file cookies.py the rawdata is of type None and above exception is hit.
Expected behaviour
Why is raw_data given to load of type None?
This is called in function start of C:\Python36\Lib\site-packages\aiohttp\client_reqrep.py
Actual behaviour
Looks like self.headers.getall(hdrs.SET_COOKIE, ()) is returning hdr of type None, This looks buggy. It should return actual header or raise stopiteration. At times it returns None.
Steps to reproduce
I have not been able to reproduce this issue. Unfortunately I lost the stack trace console output too. But have debugged till the above point.
Your environment
The text was updated successfully, but these errors were encountered: