appsflyer-react-native-plugin icon indicating copy to clipboard operation
appsflyer-react-native-plugin copied to clipboard

Unable to resolve host "inapps.appsflyer.com"

Open markushogberg opened this issue 2 years ago • 2 comments

Report

Plugin Version

6.8.2

On what Platform are you having the issue?

Android and iOS

What did you do?

Upgraded from 6.8.0 to 6.8.2

What did you expect to happen?

Everything should continue to work without errors

What happened instead?

Start receiving errors in sentry after releasing the app.

There are two types of error occurring on Android:

  1. Unable to resolve host "inapps.appsflyer.com": No address associated with hostname
  2. Error: timeout

And on iOS this error occurs:

  1. com.appsflyer.sdk.network

Please provide any other relevant information.

The issue started when we upgraded the plugin to version 6.8.2 Example stack trace:

Crashed in non-app: node_modules/react-native/Libraries/BatchedBridge/NativeModules.js in promiseMethodWrapper
native in call
Called from: node_modules/@segment/analytics-react-native/src/plugin.ts in execute$
native in call
Called from: node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js in tryCatch
native in call
Called from: node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js in tryCatch
native in apply
Called from: node_modules/react-native/Libraries/Core/Timers/JSTimers.js in anonymous

markushogberg avatar Sep 29 '22 14:09 markushogberg

👋 Hi @markushogberg 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 [email protected]. When submitting the ticket, please specify:

  • ✅ your AppsFlyer sign-up (account) email
  • ✅ app ID
  • ✅ production steps
  • ✅ logs
  • ✅ code snippets
  • ✅ and any additional relevant information.

github-actions[bot] avatar Sep 29 '22 15:09 github-actions[bot]

The same started happening to us, already around 10k alerts on Sentry It started happening to us almost 2 weeks ago after upgrading RN to 0.69.5 on logEvent call appsflyer version is 6.4.40

professorkolik avatar Oct 10 '22 09:10 professorkolik

@professorkolik @markushogberg this issue is related to internet connection. Do you see this only on logEvent call? what about initSdk?

amit-kremer93 avatar Nov 03 '22 07:11 amit-kremer93

@amit-kremer93 Looks like all (or at least most of) the errors happens on the logEvent call.

markushogberg avatar Nov 03 '22 13:11 markushogberg

@amit-kremer93 seems to be gone on v6.9.1, still analyzing

professorkolik avatar Nov 03 '22 13:11 professorkolik

same error on IOS, when calling logevent V6.9.2 RN version 0.67.3 Error: com.appsflyer.sdk.network

@GM-appsflyer

qasimgit avatar Nov 21 '22 13:11 qasimgit

fixed this issue by adding the correct devKey and appId on the init of sdk.

appsFlyer.initSdk(
  {
    devKey: 'correct-dev-key',             ----> here
    isDebug: false,
    appId: 'your-app-id',                       ----> here
    onInstallConversionDataListener: true, //Optional
    onDeepLinkListener: true, //Optional
    timeToWaitForATTUserAuthorization: 10, //for iOS 14.5
  },
  (result) => {
    console.log('result from appsflyer initialization', result);
  },
  (error) => {
    console.error('error in appsflyer initialization', error);
  },
);

@markushogberg @professorkolik @amit-kremer93

qasimgit avatar Nov 21 '22 13:11 qasimgit

@markushogberg @professorkolik please confirm that you initialized the sdk properly before sending an event

amit-kremer93 avatar Nov 21 '22 16:11 amit-kremer93

@amit-kremer93 When I try it myself locally I can confirm that it is initialized with the correct values before sending any events.

markushogberg avatar Nov 22 '22 13:11 markushogberg

@amit-kremer93 sdk was initialized properly, only thing that helped is to update to v6.9.1 from v6.4.40

professorkolik avatar Nov 22 '22 13:11 professorkolik

We are currently on v6.8.2. In the next release of our app we will have v6.9.2. I'll keep you posted if that makes the issue go away.

markushogberg avatar Nov 22 '22 13:11 markushogberg

We are seeing this as well on v6.9.4 a lot recently. Any ideas why?

smn-snkl avatar Mar 02 '23 19:03 smn-snkl

We are also still seeing these errors in v6.9.4.

markushogberg avatar Mar 03 '23 06:03 markushogberg

We are also facing this issue after upgrading RN to 0.71

bishalfan avatar Mar 20 '23 06:03 bishalfan

Any update here? We are also seeing this a lot

dnvarun avatar May 16 '23 06:05 dnvarun

This issue can be related to a specific device or network and not to the sdk. I recommend you to contact our support team at [email protected] with all the relevant information so they can help you

amit-kremer93 avatar May 31 '23 06:05 amit-kremer93