getsentry / getsentry/sentry-python

Task was destroyed but it is pending: WebsocketImplProtocol.async_data_received (Sentry-wrapped)

未关闭
#5,072 9 条评论 0 个 reaction 已指派 1 人 已被 @alexander-alderman-webb 认领 在 GitHub 查看
Bug Errors Integration: Sanic Python
主要语言
Python
星标
2.2k
派生
669
平均合并
1 天 1 小时
30 天内合并 PR
213

描述

### How do you use Sentry?

Sentry Saas ([sentry.io]())

### Version

2.43.0

### Steps to Reproduce

Hi team!

I'm having quite a few errors like these popping up in my Sentry account. At first, I thought it was an issue with my Websocket implementation, but looking at the stacktrace, some of the errors are from a standard GET request, such as this one:
[https://cnicodeme.sentry.io/share/issue/7f8aa28baa194938bd13f44953014819/]()
(For the Sentry team, feel free to access this ticket, and all the other that have the "Task was destroyed but it is pending" currently open in my organization).

I suspect that the Sentry system doesn't have the time to send the data to [Sentry.io]() and is killed before, somehow.
Unfortunately the error doesn't contain the original one, making it harder to trace where it originated and/or fix it.

### Expected Result

It shouldn't throw a "Task was destroyed but it is pending" but instead the actual underlying error. I suspect the task of sending that error to Sentry is killed before it has the chance to deliver the payload.

### Actual Result

I'm using Sanic 24.6.

Happy to share anything more that is needed

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。