analytics-react-native
analytics-react-native copied to clipboard
Error: com.appsflyer.sdk.network
-
analytics-react-native
version: ^2.9.0 - Integrations versions (if used): "@segment/analytics-react-native-plugin-appsflyer": "0.5.0"
- React Native version: 0.68.1
- iOS or Android or both? both
@alome007 could you share more of what's the error you're seeing and when does it happen?
Thank you for the reply @oscb
It happens occasionally
Possible Unhandled Promise Rejection (id: 2): Error: com.appsflyer.sdk.network promiseMethodWrapper@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:2135:45 logEventPromise@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:439289:43 logEvent@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:439295:29 _default@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:439668:45 track@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:439241:29 execute@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:199703:32 execute$@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:199851:149 tryCatch@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:19835:23 @http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:19916:32 tryCatch@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:19835:23 invoke@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:19866:30 @http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:19871:19 tryCallOne@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:23577:16 @http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:23658:27 @http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:24710:26 _callTimer@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:24629:17 _callReactNativeMicrotasksPass@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:24659:17 callReactNativeMicrotasks@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:24822:44 __callReactNativeMicrotasks@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:2535:46 @http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:2347:45 __guard@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:2519:15 flushedQueue@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.collect.africa:2346:21 flushedQueue@[native code] invokeCallbackAndReturnFlushedQueue@[native code]
This is the full stack trace. Below is the code implementation:
export const segmentClient = createClient({
writeKey: '',
trackDeepLinks: true,
collectDeviceId: true,
trackAppLifecycleEvents: true,
flushInterval: 60000,
errorHandler: errorHandler,
});
segmentClient.add({ plugin: new AppsflyerPlugin() });
<AnalyticsProvider client={segmentClient}> //some other setup </AnalyticsProvider>
The error handler does not capture this error as well.

As seen from sentry on production
Same problem here.
- Only on iOS.
- From react-native 0.71 (No error with 0.67)
@alanjcharles or @oscb have you got news about that?
Hi folks- Are you still experiencing this? I am not able to reproduce on the following versions:
"react-native": "0.72.9",
"react-native-appsflyer": "^6.14.3",