Skip to content

Different exception title [anyio 4.0] #2343

Description

@NullOsama

How do you use Sentry?

Sentry Saas (sentry.io)

Version

1.29.2

Steps to Reproduce

I'm not sure if it's something I did recently but the errors started to all have the same generic title ExceptionGroup
unhandled errors in a TaskGroup

Expected Result

The way I expected the error to be shown is how it was before as shown in the following screenshots.

sentry

image

Actual Result

image

The previous screenshot shows how is the exception shown which is very different from what it was before and it doesn't show specific information about the actual error. BTW, these screenshots are of the same error but something happened that made it look like the later pic.

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀on Sep 3, 2023
  2. NullOsama commented on Sep 5, 2023

    @NullOsama
    Author

    This issue was resolved after I downgraded anyio from 4.0.0 to 3.7.1

  3. rushilsrivastava commented on Sep 8, 2023

    @rushilsrivastava

    I think Sentry should probably handle these in a nicer way

  4. jacobowitz commented on Sep 11, 2023

    @jacobowitz

    I agree with @rushilsrivastava
    Downgrading anyio may mitigate this issue at hand, but its not a good solution. Sentry should be able to work with the new anyio versions

  5. b0g3r commented on Sep 20, 2023

    @b0g3r

    @NullOsama could you please re-open the issue?

  6. nickderobertis commented on Nov 29, 2023

    @nickderobertis

    I saw the same when updating to anyio 4. This could still be handled a lot better by Sentry. It's very difficult to find the main error in this output.

  7. szokeasaurusrex commented on Jun 3, 2024

    @szokeasaurusrex
    Member

    Hi @rushilsrivastava, @jacobowitz, @b0g3r, @nickderobertis, are any of you still observing this issue? If so, I will gladly reopen it 🙂

  8. rushilsrivastava commented on Jun 3, 2024

    @rushilsrivastava

    are any of you still observing this issue? If so, I will gladly reopen it 🙂

    Yes, this still happens on newer version of anyio

  9. changed the title [-]Different exception title[/-] [+]Different exception title [anyio 4.0][/+] on Jun 7, 2024
  10. 27 remaining items

  11. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jun 28, 2024
  12. added
    TriagedHas been looked at recently during old issue triage
    on Jul 1, 2024
  13. Cheaterman commented on May 2, 2025

    @Cheaterman

    Hello, a bit more context for Sentry devs :

    I get this:

    Image
    Image
    Image

    Note the absence of a stack trace on the ZeroDivisionError - I barely even see it mentioned.

    I would expect something more like the following (see "spoiler" tag after code block) - except ideally with handled set to false - the reason it's true here is because I manually called sentry_sdk.capture_exception() from a artificial/unwanted global try/except block, ie

                try:
                    await super().async_run('trio')
    
                except Exception:
                    sentry_sdk.capture_exception()
                    raise
    The result:

    Image
    Image
    Image

    Thanks in advance! :-)

    EDIT: I had already seen getsentry/sentry#37716 which gave me hope in the first place, but no cigar - my versions should be OK - the issue says « It will also be included in the next Sentry Self-Hosted release (23.6.0, est. June 2023). » , and my versions are as follow (although note I'm not entirely done upgrading my server yet, I stopped at the last hard stop):

    Image
    Image

    So Python sentry-sdk 2.27.0, self-hosted Sentry 24.8.0.

  14. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on May 2, 2025
  15. szokeasaurusrex commented on May 5, 2025

    @szokeasaurusrex
    Member

    This problem should be fixed by #4164. However, since this change affects how issues are grouped in Sentry, it is a breaking change, and so it will only be released in the next major (3.0.0).

    We plan to release an alpha version of 3.0.0 soon (hopefully this week or next). There is no timeline yet for when we will release a stable version.

  16. Cheaterman commented on May 5, 2025

    @Cheaterman

    Thanks a lot for your answer! Can't wait to see it with my own eyes :-) godspeed Sentry team & contributors!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ImprovementPythonSDKTriagedHas been looked at recently during old issue triage

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions