nativescript-community / nativescript-community/sentry

Sentry.close() does not work

Open
#20 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
18
Forks
12
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce Sentry.close() on both Android and iOS using @nativescript-community/sentry 4.6.28, then inspect the failure reported at node_modules/stacktrace-gps/stacktrace-gps.js:186 and the package's close path. Done means Sentry.close() completes without the "Failed to close the SDK" error on both platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.