Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve host "inapps.appsflyer.com" #426

Closed
markushogberg opened this issue Sep 29, 2022 · 16 comments
Closed

Unable to resolve host "inapps.appsflyer.com" #426

markushogberg opened this issue Sep 29, 2022 · 16 comments

Comments

@markushogberg
Copy link

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
@github-actions
Copy link

👋 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 support@appsflyer.com.
When submitting the ticket, please specify:

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

@professorkolik
Copy link

professorkolik commented Oct 10, 2022

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

@amit-kremer93
Copy link
Contributor

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

@markushogberg
Copy link
Author

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

@professorkolik
Copy link

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

@qasimgit
Copy link

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

@GM-appsflyer

@qasimgit
Copy link

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

@amit-kremer93
Copy link
Contributor

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

@markushogberg
Copy link
Author

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

@professorkolik
Copy link

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

@markushogberg
Copy link
Author

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.

@smn-snkl
Copy link

smn-snkl commented Mar 2, 2023

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

@markushogberg
Copy link
Author

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

@bishalfan
Copy link

We are also facing this issue after upgrading RN to 0.71

@dnvarun
Copy link

dnvarun commented May 16, 2023

Any update here? We are also seeing this a lot

@amit-kremer93
Copy link
Contributor

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 support@appsflyer.com with all the relevant information so they can help you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants