analytics-react-native icon indicating copy to clipboard operation
analytics-react-native copied to clipboard

Error: com.appsflyer.sdk.network

Open alome007 opened this issue 1 year ago • 5 comments

  • 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 avatar Mar 10 '23 12:03 alome007

@alome007 could you share more of what's the error you're seeing and when does it happen?

oscb avatar Mar 10 '23 17:03 oscb

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.

alome007 avatar Mar 10 '23 17:03 alome007

Screenshot 2023-03-10 at 18 33 16

As seen from sentry on production

alome007 avatar Mar 10 '23 17:03 alome007

Same problem here.

  • Only on iOS.
  • From react-native 0.71 (No error with 0.67)

renanbronchart avatar Jun 07 '23 09:06 renanbronchart

@alanjcharles or @oscb have you got news about that?

renanbronchart avatar Jun 07 '23 10:06 renanbronchart

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",

alanjcharles avatar Jul 25 '24 18:07 alanjcharles