Skip to content

sentry-sdk >=2.0.0 is not supported #135

Description

@jma

Package version (if known): 1.30

Describe the bug

The following error can occurs with the new version of sentry-sdk:

    def api_errorhandler(e):
        if isinstance(e, RESTException):
            return e.get_response()
        elif isinstance(e, HTTPException) and e.description:
            kwargs["message"] = e.description
        if kwargs.get("status", 400) >= 500:
>           sentry_event_id = sentry_sdk.last_event_id()
E           AttributeError: module 'sentry_sdk' has no attribute 'last_event_id'
site-packages/invenio_rest/views.py:44: AttributeError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions