Open chamini2 opened 3 months ago
Can you create an actual reproducer? The test cases we have all seem to be working correctly.
so I am thinking this is somehow maybe getting the wrong reference in
asyncio.current_task()
?
I don't see how that's possible.
I spent some time and cannot create a reproducer. I will try to get around to do this eventually, but it just happened in my prod environment and I solved as described. We can close for now if you prefer and I can re open when I do it.
I don't mind. If there is an issue, I'd certainly like to resolve it. But, can't really imagine what's going wrong based on the current information.
Unless you are using handler_cancellation and forgot (or a rather old version of aiohttp where it was on by default)? https://docs.aiohttp.org/en/stable/web_advanced.html#web-handler-cancellation
I am having to do
And if we look at the exc info it is happening inside the lib:
https://github.com/aio-libs/aiohttp-sse/blob/e2f46bf7890f82746b1cd0f1fc8e9edd5e429f62/aiohttp_sse/__init__.py#L138-L162
I do not see any other source of CancelledError being riased in my code, so I am thinking this is somehow maybe getting the wrong reference in
asyncio.current_task()
?