-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Part of POST data is lost under hightload #2893
Comments
You can not receive request data after you instruct aiohttp to send response. You code is wrong, just read data using await in request handler . This will work "in background" actually |
Looks like buggy github mobile did the right thing: the code example is not valid, the issue should be closed |
Looks like buggy github mobile did the right thing: the code example is not valid, the issue should be closed |
I have fixed this like you suggested. Thanks. |
I like the idea. Created #2895 for this |
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. |
Short story
I was trying to extract POST data from request object passed to new task.
Everything is ok for most of requests but sometimes part of data is missing.
I hope code will explain better.
Steps to reproduce
Bash test:
Here is content of
post_data.json
: https://pastebin.com/raw/PKRFVqKCHere is what I get sometimes: https://pastebin.com/raw/s2Mq6EeN
Your environment
I'm running
docker-compose
, cloned from https://github.com/Zeliboba5/aiohttp-boilerplate$pip freeze:
aenum==2.0.8
aiohttp==3.0.1
async-timeout==2.0.1
asyncpg==0.13.0
attrs==17.4.0
chardet==3.0.4
idna==2.6
idna-ssl==1.0.1
marshmallow==2.13.5
multidict==4.1.0
PyPika==0.10.1
PyYAML==3.12
uvloop==0.9.1
yarl==1.1.1
The text was updated successfully, but these errors were encountered: