Skip to content
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

Problem: aiohttp server randomly crashes (assert transport is not None) #400

Closed
odesenfans opened this issue Apr 20, 2023 · 1 comment · Fixed by #406
Closed

Problem: aiohttp server randomly crashes (assert transport is not None) #400

odesenfans opened this issue Apr 20, 2023 · 1 comment · Fixed by #406
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@odesenfans
Copy link
Contributor

The aiohttp server can crash randomly because of an invalid assertion in aiohttp code. The issue appears to be on the side of aiohttp and is tracked in the following Github issue: aio-libs/aiohttp#6978.

Logs

pyaleph-api_1 | File "/opt/venv/lib/python3.11/site-packages/aiohttp/web_app.py", line 446, in _make_request
pyaleph-api_1 | return _cls(
pyaleph-api_1 | ^^^^^
pyaleph-api_1 | File "/opt/venv/lib/python3.11/site-packages/aiohttp/web_request.py", line 811, in init
pyaleph-api_1 | super().init(*args, **kwargs)
pyaleph-api_1 | File "/opt/venv/lib/python3.11/site-packages/aiohttp/web_request.py", line 188, in init
pyaleph-api_1 | assert transport is not None
pyaleph-api_1 | ^^^^^^^^^^^^^^^^^^^^^
pyaleph-api_1 | AssertionError
pyaleph-api_1 | ERROR:asyncio:Task exception was never retrieved
pyaleph-api_1 | future: <Task finished name='Task-53235' coro=<RequestHandler.start() done, defined at /opt/venv/lib/python3.11/site-packages/aiohttp/web_protocol.py:462> exception=AssertionError()>
pyaleph-api_1 | Traceback (most recent call last):
pyaleph-api_1 | File "/opt/venv/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 505, in start
pyaleph-api_1 | request = self._request_factory(message, payload, self, writer, handler)
pyaleph-api_1 |

Solution

Wait for the next stable release of aiohttp once it is released, the bug should be fixed then.

@odesenfans odesenfans added bug Something isn't working dependencies Pull requests that update a dependency file labels Apr 20, 2023
@odesenfans odesenfans linked a pull request Apr 24, 2023 that will close this issue
@odesenfans
Copy link
Contributor Author

Fixed by #406.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant