avniproject / avni-client

Android app for the fieldworkers.
https://avniproject.org
GNU Affero General Public License v3.0
7 stars 20 forks source link

BugSnag Error (LFE) #1219

Open vinayvenu opened 10 months ago

vinayvenu commented 10 months ago

BugSnag Error

Error Fatal error: Unsupported idpType: null 
    /home/circleci/avni-client/packages/openchs-android/node_modules/@react-native-firebase/app/lib/internal/NativeFirebaseError.js:58:23 _0x4fe1eb
    index.android.bundle:1:1306141 ?anon_0_
    native next
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Image/Image.android.js:340:2 asyncGeneratorStep
    /home/circleci/avni-client/packages/openchs-android/node_modules/@babel/runtime/helpers/asyncToGenerator.js:15:26 _asyncToGenerator
    /home/circleci/avni-client/packages/openchs-android/node_modules/@babel/runtime/helpers/asyncToGenerator.js:20:10 anonymous
    /root/react-native/packages/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/1h352kp3/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:61:9 tryCallTwo
    /root/react-native/packages/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/1h352kp3/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:216:25 doResolve
    /root/react-native/packages/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/1h352kp3/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:82:14 Promise
    /home/circleci/avni-client/packages/openchs-android/node_modules/@babel/runtime/helpers/asyncToGenerator.js:12:20 asyncGeneratorStep
    native apply
    index.android.bundle:1:1306204 _0x24548b
    index.android.bundle:1:1308005 ?anon_0_
    native next
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Image/Image.android.js:340:2 asyncGeneratorStep
    /home/circleci/avni-client/packages/openchs-android/node_modules/@babel/runtime/helpers/asyncToGenerator.js:15:26 _asyncToGenerator
    /home/circleci/avni-client/packages/openchs-android/node_modules/@babel/runtime/helpers/asyncToGenerator.js:20:10 anonymous
    /root/react-native/packages/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/1h352kp3/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:61:9 tryCallTwo
    /root/react-native/packages/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/1h352kp3/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:216:25 doResolve
    /root/react-native/packages/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/1h352kp3/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:82:14 Promise
    /home/circleci/avni-client/packages/openchs-android/node_modules/@babel/runtime/helpers/asyncToGenerator.js:12:20 asyncGeneratorStep
    native apply
    index.android.bundle:1:1308257 _0x1c4377
    index.android.bundle:1:1308370 _get
    index.android.bundle:1:1309445 getJSON
    /home/circleci/avni-client/packages/openchs-android/src/service/EntityApprovalStatusService.js:61:66 _0x29a9c2
    /home/circleci/avni-client/packages/openchs-android/src/service/EntityApprovalStatusService.js:61:66 _0x47f7dd
    /home/circleci/avni-client/packages/openchs-android/src/service/EntityApprovalStatusService.js:61:66 anonymous
    /root/react-native/packages/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/1h352kp3/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:53:16 tryCallOne
    /root/react-native/packages/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/1h352kp3/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:139:27 anonymous
    native apply
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:243 anonymous
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:94:2 _callTimer
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:154:2 _callReactNativeMicrotasksPass
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:407:3 callReactNativeMicrotasks
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:385:50 __callReactNativeMicrotasks
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:127:30 anonymous
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:359:2 __guard
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:125:6 flushedQueue
    /home/circleci/avni-client/packages/openchs-android/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:117:3 invokeCallbackAndReturnFlushedQueue

Management of BugSnag error and BugSnag https://avni.readme.io/docs/how-to-use-bugsnag

1t5j0y commented 10 months ago

Unable to simulate a condition where idpType would be null. Tried various flows of fresh install of 5.0.0 and upgrade from 4.0.5 (previous lfe prod version) to 5.0.0 and token expiry.

mahalakshme commented 10 months ago

@1t5j0y If the user is in 4.0.5 version he might probably face the issue since the fix we did in main for the above issue in Avni main branch, the user ll not have. It happened because automatic sync was happening before login. So if this error happens only for 4.0.5 version in bugsnag we can close the card

1t5j0y commented 10 months ago

@mahalakshme yes, that was checked. All occurrences are on version 5.0.0