-
-
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
asyncio http call times out #3625
Comments
The proxy is not an issue. We got response back in normal situation. It happens under heavy number of requests only. |
i too get this error
|
so what should you limit the requests to be if its "heavy requests" |
ya as this issue only affects one object in my scheduler with the proxy i use but not others so 🤔 |
There's not enough information here to provide any help. It could be that you've set the timeout too low or created too many tasks. The total timeout includes the time it takes to handle everything, not just the network request itself. |
Long story short
We are making async call to the a site. It times out on it. With the network sniffer, it shows the site responses within 400ms.
Expected behaviour
Get the response back.
Actual behaviour
Throwing the error:
File "/opt/app-root/src/pppLib.py", line 407, in fetch\n async with session.post(url, data=pData, headers=head, timeout=timeout) as response:\n File "/opt/app-root/lib/python3.6/site-packages/aiohttp/client.py", line 1005, in aenter\n self._resp = await self._coro\n File "/opt/app-root/lib/python3.6/site-packages/aiohttp/client.py", line 575, in _request\n break\n File "/opt/app-root/lib/python3.6/site-packages/aiohttp/helpers.py", line 585, in exit\n raise asyncio.TimeoutError from None"}
I've checked the client.py code, haven't get much clue on it yet.
Steps to reproduce
The code is like this:
Your environment
redhat 3.9, python 3.6.3, aiohttp 3.5.4 and asyncio 3.4.3
The text was updated successfully, but these errors were encountered: