I am doing request() of aiohttp.ClientSession instance and sometimes asyncio.TimeoutError is raised. I thought that aiohttp.ServerTimeoutError must be raised in this cases, which derived from asyncio.TimeoutError, as this doc says: http://docs.aiohttp.org/en/stable/client_reference.html#aiohttp.ServerTimeoutError Why is it happening? Maybe because I am using old version of aiohttp? 2.3.8
UPD this may happen in very simple code like this
async def example_of_code():
session = aiohttp.ClientSession()
response = await session.request(
method='POST',
url='some_url',
params={'some': 'params'},
data={'some': 'data'},
headers={'some': 'headers'},
timeout=10
)
return await response.json()