-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Sentry spamming RequestAborted on async django 5 #11719
Comments
Hey @dima-kov, thanks for reporting. Yeah this should not be reported. While we're working on a fix, in the meantime you can filter the error out by defining a custom |
Ok I see what the problem is now. The |
For the time being, the custom So even though technically speaking both integrations are working as expected, the out of the box experience is definitely improvement worthy. What we could do is have a predefined denylist of exceptions to ignore in the |
Would be great to update docs to describe the problem and potential fix example (before send) |
Assigning to @getsentry/support for routing ⏲️ |
How do you use Sentry?
Sentry Saas (sentry.io)
Version
sentry-sdk==2.6.0
django==5.0.6
Steps to Reproduce
python -m uvicorn myproject.asgi:application
RequestAborted
error to sentry UI:As we look into django code: https://github.com/django/django/blob/bcd255cd5ca0a1e686d276cca71f45ec400d84a2/django/core/handlers/asgi.py#L195-L202, raising this exception is expected for every http request, and is handled by django https://github.com/django/django/blob/bcd255cd5ca0a1e686d276cca71f45ec400d84a2/django/core/handlers/asgi.py#L209-L211 so we do not need to send errors on that.
Do you plan to fix this issue?
Expected Result
no error sent to sentry
Actual Result
The text was updated successfully, but these errors were encountered: