Task exception was never retrieved on v3.8.3
Author: w0rmr1d3rCreated Sep 27, 2022Updated Jul 28, 2026
Labelsbug
Describe the bug
We bumped from v3.8.1 to v3.8.3 this morning and started seeing the following errors. No other changes were done to our project:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 505, in start
request = self._request_factory(message, payload, self, writer, handler)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 446, in _make_request
return _cls(
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_request.py", line 811, in __init__
super().__init__(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_request.py", line 188, in __init__
assert transport is not None
AssertionErrorAnd
Task exception was never retrieved
future: <Task finished name='Task-30396' coro=<RequestHandler.start() done, defined at /usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py:462> exception=AssertionError()>To Reproduce
- We were using v3.8.1
- Bump to v3.8.3
No other changes introduced from our side, those errors started appearing.
Expected behavior
For that exception to be handled.
Logs/tracebacks
Added them on the description, adding them here as well:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 505, in start
request = self._request_factory(message, payload, self, writer, handler)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 446, in _make_request
return _cls(
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_request.py", line 811, in __init__
super().__init__(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_request.py", line 188, in __init__
assert transport is not None
AssertionErrorAnd
Task exception was never retrieved
future: <Task finished name='Task-30396' coro=<RequestHandler.start() done, defined at /usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py:462> exception=AssertionError()>Python Version
$ python --version
3.9.13aiohttp Version
$ python -m pip show aiohttp
3.8.3multidict Version
$ python -m pip show multidict
6.0.2yarl Version
$ python -m pip show yarl
1.8.1OS
Docker image
Related component
Server
Additional context
I have added as much context as I had, if I left out anything relevant, happy to look for it and add it to the issue.
Code of Conduct
- I agree to follow the aio-libs Code of Conduct
Source: aio-libs/aiohttp