AppsFlyerSDK / appsflyer-react-native-plugin

AppsFlyer plugin for React Native
MIT License
273 stars 196 forks source link

Error: com.appsflyer.sdk.network after React Native upgrade #350

Closed pabloearg closed 2 years ago

pabloearg commented 2 years ago

Hi Team,

Production version -> "react-native-appsflyer": "6.2.42" SO: iOS

After our latest release, in which we updated the react native version of the app from 0.63.4 to 0.65.1. We are getting a lot of network errors (com.appsflyer.sdk.network) on Sentry, that are not even being grouped.

image

image

Is there a way to fix this?

github-actions[bot] commented 2 years ago

πŸ‘‹ Hi @pabloearg and Thank you for reaching out to us. In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com. When submitting the ticket, please specify:

DimGun commented 2 years ago

Have the same issue, also caught by Sentry. I've just sent requested information to the support@appsflyer.com. react-native: 0.64.2 react-native-appsflyer: 6.4.0

The questions are: What does this exception mean? Is it just that event could not be sent right now and it will be sent on the next occasion? Should we care?

af-fess commented 2 years ago

Possible duplicate of https://github.com/AppsFlyerSDK/appsflyer-react-native-plugin/issues/329

roryf commented 2 years ago

Experiencing the same issue, after installing appsflyer

"react-native": "0.66.1",
    "react-native-appsflyer": "^6.5.21",

I don't think this is a duplicate of #329 which is asking what the cause of the error is, I think the issue here is the noise it creates in Sentry. Yes we can ignore it, but should the library be causing exceptions for transient network errors?

LydGol90 commented 2 years ago

Hi. We have also been battling with this issue, however I realised that for us it was due to our segment integration set up pointing to an apple app id for an app that no longer existed. (I had created it purely for debug testing). I have noticed that it can take some time after setting up a new app in appsflyer before it becomes "available" to the SDK and so was also seeing it in these cases. I've not confirmed but it may also happen if integration is turned off in Segment. Just posting this here in case this helps anyone else.

arthurgeron-work commented 1 year ago

This same issue started happening to my project after I upgraded it to RN 0.71

beqramo commented 1 year ago

I have this issue for a centuries, I didn't find any solution for this

OHHAKO commented 1 year ago

same issue. 2 weeks ago network error started.

"react-native": "0.69.4",
react-native-appsflyer": "^6.9.2",
renanbronchart commented 1 year ago

The same, no fix on this issue, can we reopened this issue @af-fess ?

amit-kremer93 commented 1 year ago

@renanbronchart this issue happens randomly on AppsFlyer calls or on a specific calls? (logEvent, start, etc.) and do you know if it happens more on a specific device?

bufgix commented 1 year ago

@renanbronchart this issue happens randomly on AppsFlyer calls or on a specific calls? (logEvent, start, etc.) and do you know if it happens more on a specific device?

im getting same error when logEvent calls. My app running on IPhone 7 and IPhone 14 plus.

  AppsflyerModule.logEvent(ANALYTICS_EVENTS.appsflyer.firstOpen, {}).catch(
    e => {
      console.log(e);
    },
  );
[Error: com.appsflyer.sdk.network]

appsflayer version

    "react-native": "0.71.8",
    "react-native-appsflyer": "^6.10.3",
renanbronchart commented 1 year ago

@renanbronchart this issue happens randomly on AppsFlyer calls or on a specific calls? (logEvent, start, etc.) and do you know if it happens more on a specific device?

Thanks for reply @amit-kremer93 .

Please @af-fess , can you re-open this issue, it is not duplicate and it's not a problem with DNS or AdBlocker. It's a problem linked with the react-native update to 0.71.

OS: Only iOS VersionOS : From 15 to 16 React-native version : Error appear after upgrading to 0.71

Here the public link of my sentry error: https://toasty-hr.sentry.io/share/issue/9a24482a2f0042f2b1eefb7515a723c8/

Capture d’écran 2023-06-07 aΜ€ 11 12 23
dannyhw commented 1 year ago

also getting this as soon as we include the apps flyer plugin

heres a patch I used on @segment/analytics-react-native-plugin-appsflyer to stop the warnings but not sure if theres some underlying problem

  1. removes isString method that isn't exported by the segment package
  2. catches the promise error whenever it tries to log an event and fails
diff --git a/src/methods/track.ts b/src/methods/track.ts
index 2dcb88d63bf1626800eadcf58c3e6c1dbd2e4b83..06dc2c7af43f3783dcf24b068eeba995a701747f 100644
--- a/src/methods/track.ts
+++ b/src/methods/track.ts
@@ -26,9 +26,9 @@ export default async (event: TrackEventType) => {
       ...otherProperties,
       af_revenue: revenue,
       af_currency: currency,
-    });
+    }).catch(e => console.log("segment appsflyer plugin error", e));
   } else {
-    await appsFlyer.logEvent(event.event, properties);
+    await appsFlyer.logEvent(event.event, properties).catch(e => console.log("segment appsflyer plugin error", e));
   }
 };

@@ -54,7 +54,7 @@ const extractCurrency = (
   defaultCurrency: string
 ): string => {
   const value = properties[key];
-  if (isString(value)) {
+  if (typeof value === "string") {
     return value;
   }
   return defaultCurrency;
ahtokca commented 9 months ago

same here

react-native 0.72.4 react-native-appsflyer ^6.12.2

is there a solution? why the ticket is closed?

mohanramCypherD commented 6 months ago

Hey team, facing the same issue. There is no proposed solution for this issue provided in this thread. Any updates on fixing this ?

pooja-turnip commented 1 month ago

@ge-af : We have been facing the same issue. Native apps both on android and ios. We have raised the issue with appsflyer support team but there is no resolution. Was a solution found for this issue?