Skip to content

Sentry.close() does not work #20

@asharghi

Description

@asharghi

Not able to do Sentry.close(), getting "Failed to close the SDK". I see in the package that it uses getCurrentHub().getClient() to get the client, but it's marked as deprecated. Logging the error from the catch it says:

TypeError: Cannot read properties of undefined (reading 'then')
      at file: node_modules/stacktrace-gps/stacktrace-gps.js:186:0
      at async Module.close (file:///app/vendor.js:3795:13)

I'm on "@nativescript-community/sentry": "4.6.28". Same result on Android and iOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions