We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sometimes AssertionError raises in RestManager.stop():
RestManager.stop()
async def stop(self): ... if self.site: await self.site.stop()
The actual error happens in aiohttp.web_request.BaseRequest.__init__:
aiohttp.web_request.BaseRequest.__init__
transport = self._protocol.transport assert transport is not None
It seems that calling await self.site.stop() is not sufficient for a proper AIOHTTP shutdown, and the correct shutdown code should be:
await self.site.stop()
await self.runner.shutdown() # should be called before self.runner.cleanup() await self.runner.cleanup() # self.site.stop() is called inside this method
The text was updated successfully, but these errors were encountered:
Sentry issue: TRIBLER-119
Sorry, something went wrong.
Fixes Tribler#7216
e053c71
4e1a0e5
Successfully merging a pull request may close this issue.
Sometimes AssertionError raises in
RestManager.stop()
:The actual error happens in
aiohttp.web_request.BaseRequest.__init__
:It seems that calling
await self.site.stop()
is not sufficient for a proper AIOHTTP shutdown, and the correct shutdown code should be:The text was updated successfully, but these errors were encountered: