morenoh149 / react-native-contacts

React Native Contacts
MIT License
1.65k stars 564 forks source link

RCTJSErrorFromCodeMessageAndNSError in getAllWithoutPhotos call #673

Closed alexhans1 closed 2 years ago

alexhans1 commented 2 years ago

Hi,

we have integrated RN contacts but see that for some users but not all the getAllWithoutPhotos function fails. We are logging this stack trace to sentry:

{
    error: {
        code: Error, 
        domain: RCTErrorDomain, 
        message: undefined, 
        name: Error, 
        nativeStackIOS: [
            0   App                              0x0000000102a583d4 RCTJSErrorFromCodeMessageAndNSError + 100, 
            1   App                              0x0000000102a28644 __41-[RCTModuleMethod processMethodSignature]_block_invoke_2.103 + 108, 
            2   App                              0x000000010356b010 -[RCTContacts contactsStore:] + 240, 
            3   App                              0x0000000103564f3c -[RCTContacts getAllContacts:reject:withThumbnails:] + 60, 
            4   CoreFoundation                   0x00000001bddae614 D2716F2F-688B-3D51-BA8B-17E6553B209E + 140820, 
            5   CoreFoundation                   0x00000001bddcc100 D2716F2F-688B-3D51-BA8B-17E6553B209E + 262400, 
            6   CoreFoundation                   0x00000001bde0313c D2716F2F-688B-3D51-BA8B-17E6553B209E + 487740, 
            7   App                              0x0000000102a28c14 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 460, 
            8   App                              0x0000000102a2b26c _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicEiN12_GLOBAL__N_117SchedulingContextE + 540, 
            9   App                              0x0000000102a2ae9c ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 112, 
            10  libdispatch.dylib                0x00000001bda8ae68 69DAC9C7-DDAF-318E-B068-BE596D142A2F + 7784, 
            11  libdispatch.dylib                0x00000001bda8ca2c 69DAC9C7-DDAF-318E-B068-BE596D142A2F + 14892, 
            12  libdispatch.dylib                0x00000001bda94124 69DAC9C7-DDAF-318E-B068-BE596D142A2F + 45348, 
            13  libdispatch.dylib                0x00000001bda94c80 69DAC9C7-DDAF-318E-B068-BE596D142A2F + 48256, 
            14  libdispatch.dylib                0x00000001bda9f500 69DAC9C7-DDAF-318E-B068-BE596D142A2F + 91392, 
            15  libsystem_pthread.dylib          0x000000022edaa0bc _pthread_wqthread + 288, 
            16  libsystem_pthread.dylib          0x000000022eda9e5c start_wqthread + 8
        ], 
        stack: 
        Error: undefined
            at anonymous (address at /private/var/containers/Bundle/Appli...
    }
}

have you even stumble across this by any chance?

github-actions[bot] commented 2 years ago

This issue is stale, please provide more information about the status

morenoh149 commented 2 years ago

I have not seen this error.