Task was destroyed but it is pending: WebsocketImplProtocol.async_data_received (Sentry-wrapped)
@alexander-alderman-webb đang làm issue này rồi.
Từ ngày 24/11/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 2.2k
- Fork
- 672
- Merge trung bình
- 22 giờ 54 phút
- Pull request đã merge (30 ngày)
- 235
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/sentry-python
-
Python
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
getsentry/sentry-python#7668 · 1 bình luận ·
-
Python
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
getsentry/sentry-python#7671 · 1 bình luận ·
-
Remove send_default_pii from ray Đang mởPython
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
getsentry/sentry-python#7663 · 1 bình luận ·
-
Python
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
getsentry/sentry-python#7660 · 1 bình luận ·
-
Python
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
getsentry/sentry-python#7652 · 1 bình luận ·
Tất cả issue của getsentry/sentry-python
Issue tương tự
-
bug confirmed issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
open-webui/open-webui#30750 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100