-
-
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
too many header bytes seen; overflow detected #5603
Comments
Interestingly, the code search by the error message does not return anything from this repository or even org. I wonder if it's coming from some underlying library... |
@SG87 I noticed that you use a 1.5-year-old version of aiohttp. Have you checked that it's reproducible in newer versions? We don't do backports so if there's any fix necessary, it'll be released under the 3.8-stream or higher (whenever the patch is invented). On a side note, just staring at the source hasn't revealed anything suspicious. Somebody will need to stick a debugger there and see what's happening in runtime. Also, it sounds like you verified the issue under *NIX (macOS + GNU/Linux since docker containers run that in a Linux VM on macs). If you can come up with a reproducer in a form of a pytest-based test, feel free to send a PR with it — merging regression tests is always useful. |
@anesabml if you want to try debugging this, have fun ;) |
If you mean the 'header bytes' message, it appears to be under a submodule, so maybe you missed it. |
I guess if the error is coming from there, then the issue should probably be moved to the nodejs project. Although it's unmaintained, so probably no point. Perhaps the issue will be resolved once the parsing library has been changed in aiohttp. |
Just upgraded to aiohttp==3.7.4.post0. Still the same error. |
Fair enough. Blocked by #3561. |
@webknjaz So there's no need to debug this? |
I guess not anymore. |
Any idea when the parsing library changes in aiohttp and this issue might be resolved? |
When somebody will take time to implement it. It's a volunteer project so it is hard to predict. |
Is resolving this issue simply just that the header file and sources of the node HTTP parser need to be reworked? |
@wefatherley Maybe, but that lib is no longer maintained. We need to migrate to https://github.com/nodejs/llhttp instead. This is tracked at #3561 and there's even a PR #5364 that I haven't had time to check but you're welcome to. |
Can you retest? The parser has changed has been switched and many other changes have happened since. |
🐞 Describe the bug
When sending a call in a aiohttp ClientSession, the error
too many header bytes seen; overflow detected
is returned.💡 To Reproduce
No exact code to reproduce, because it uses proprietary sources. The code:
💡 Expected behavior
This code should return a json response.
It is working for most calls, but if the result?/header?/...? of a call is getting to big, this message is thrown?
📋 Logs/tracebacks
📋 Your version of the Python
📋 Your version of the aiohttp/yarl/multidict distributions
📋 Additional context
Running on Mac OS. Error both in Pycharm and Docker
Call is going to a local ES instance for development
Using the client library (ClientSession)
The text was updated successfully, but these errors were encountered: