Open theobat opened 1 year ago
Can you try and get the callstack from the first error ?(add error.stack to the console log)
The trace is not great because I can only test in prod :
JS: Error starting Sentry Error: Cannot convert boolean to Ljava/lang/Boolean; at index 0
JS: Catching on startWithOptions, calling callback test Error: Cannot convert boolean to Ljava/lang/Boolean; at index 0 Error: Cannot convert boolean to Ljava/lang/Boolean; at index 0
JS: at Object.configure (file:///data/data/com.corefortech.app.prod2/files/app/bundle.js:265:3)
JS: at Object.e.initNativeSdk (file:///data/data/com.corefortech.app.prod2/files/app/bundle.js:255:47)
JS: at F._initNativeSdk (file:///data/data/com.corefortech.app.prod2/files/app/bundle.js:107:16)
JS: at new F (file:///data/data/com.corefortech.app.prod2/files/app/bundle.js:93:6)
JS: at r (file:///data/data/com.corefortech.app.prod2/files/app/vendor.js:15029:7)
JS: at Module.Y (file:///data/data/com.corefortech.app.prod2/files/app/bundle.js:181:189)
JS: at T.start (file:///data/data/com.corefortech.app.prod2/files/app/bundle.js:1231:3)
But the error is caused by the debug flag :
// this doesn't work :
Sentry.init({
debug: true,
// this works :
Sentry.init({
debug: new java.lang.Boolean(true),
But then I get other errors :
JS: Catching on startWithOptions, calling callback test Error: com.tns.NativeScriptException: Calling js method create failed
JS: Error: java.lang.Exception: Failed resolving constructor for class 'io.sentry.transport.RateLimiter' with 1 parameters. Check the number and type of arguments.
JS: Primitive types need to be manually wrapped in their respective Object wrappers.
JS: If you are creating an instance of an inner class, make sure to always provide reference to the outer `this` as the first argument. e.initNativeSdk(file:///data/data/com.corefortech.app.prod2/files/app/bundle.js:255:47)
JS: at _initNativeSdk(file:///data/data/com.corefortech.app.prod2/files/app/bundle.js:107:16)
JS: at F(file:///data/data/com.corefortech.app.prod2/files/app/bundle.js:93:6)
JS: at r(file:///data/data/com.corefortech.app.prod2/files/app/vendor.js:15029:7)
JS: at Y(file:///data/data/com.corefortech.app.prod2/files/app/bundle.js:181:189)
JS: at start(file:///data/data/com.corefortech.app.prod2/files/app/bundle.js:1231:3)
I'm investigating on this one now
@theobat as i told you on slack you must be forcing the sentry android lib version in App_Resources/Android/before-plugins.gradle
either remove it or upgrade to 6.5.0 or +
Which platform(s) does your issue occur on?
Working to resolve this right now.