nativescript-community / nativescript-community/sentry

Errors on 4.6.2 in Android's init

Open
#13 4 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

 Catching on startWithOptions, calling callback Error: Cannot convert boolean to Ljava/lang/Boolean; at index 0
  JS: Garmin: garmin module started
  JS: captureMsg d3fa5208745d4f148d5e5a46d6efcaab TEST Login mounted,  undefined
  JS: captureEnvelope error TypeError: Cannot read property 'getOutboxPath' of undefined TypeError: Cannot read property 'getOutboxPath' of undefined
  JS:     at c (file:///data/data/com.corefortech.app.prod2/files/app/vendor.js:10078:65)
  JS:     at Object.e.sendEnvelope (file:///data/data/com.corefortech.app.prod2/files/app/vendor.js:10047:7)
  JS:     at file:///data/data/com.corefortech.app.prod2/files/app/vendor.js:9897:84
  JS:     at Object.add (file:///data/data/com.corefortech.app.prod2/files/app/vendor.js:9706:7)
  JS:     at Dt.send (file:///data/data/com.corefortech.app.prod2/files/app/vendor.js:9897:72)
  JS:     at kt._sendEnvelope (file:///data/data/com.corefortech.app.prod2/files/app/vendor.js:9924:44)
  JS:     at kt.sendEvent (file:///data/data/com.corefortech.app.prod2/files/app/vendor.js:9806:6)
  JS:     at file:///data/data/com.corefortech.app.prod2/files/app/vendor.js:9863:125
  JS:     at Array.<anonymous> (file:///data/data/com.corefortech.app.prod2/files/app/vendor.js:15961:132)
  JS:     at file:///data/data/com.corefortech.app.prod2/files/app/vendor.js:15972:56
  JS: Sentry Logger [error]: Error while sending event: TypeError: Cannot read property 'flushSendEvent' of undefined
Which platform(s) does your issue occur on?
  • Android
  • device sony xperia android 9

Working to resolve this right now.

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

Start with the Android init path and the startWithOptions callback, then trace the reported calls in vendor.js around getOutboxPath and flushSendEvent. Reproduce the errors on the Sony Xperia Android 9 setup if available; done means the initialization and event-sending errors no longer occur.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, typescript
Domain
mobile, observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.