Backendless Support
 
Waiting for user's response

Unknown Host Exception - BackendlessPro - License ID: 1476971703098

I also get these intermittently, usually on launch of our app. I just saw this on my dev device. I originally just attributed these to spotty internet when I see it in the wild, but I just saw this in my house on stable wifi, and the apps map loaded fine while backendless failed to connect.

11-03 23:52:32.581 29518-29610/dinnerdeal.androiddev.customer W/System.err: java.net.UnknownHostException: Unable to resolve host "dinnerdeal.backendless.com": No address associated with hostname

11-03 23:52:32.581 29518-29591/dinnerdeal.androiddev.customer W/CrashlyticsCore: Received null settings, skipping initialization!

11-03 23:52:32.581 29518-29610/dinnerdeal.androiddev.customer W/System.err: at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:125)

11-03 23:52:32.581 29518-29610/dinnerdeal.androiddev.customer W/System.err: at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:74)

11-03 23:52:32.581 29518-29610/dinnerdeal.androiddev.customer W/System.err: at java.net.InetAddress.getAllByName(InetAddress.java:752)

11-03 23:52:32.581 29518-29610/dinnerdeal.androiddev.customer W/System.err: at okhttp3.Dns$1.lookup(Dns.java:39)

11-03 23:52:32.581 29518-29610/dinnerdeal.androiddev.customer W/System.err: at okhttp3.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:173)

11-03 23:52:32.581 29518-29610/dinnerdeal.androiddev.customer W/System.err: at okhttp3.internal.http.RouteSelector.nextProxy(RouteSelector.java:139)

11-03 23:52:32.581 29518-29610/dinnerdeal.androiddev.customer W/System.err: at okhttp3.internal.http.RouteSelector.next(RouteSelector.java:81)

11-03 23:52:32.582 29518-29610/dinnerdeal.androiddev.customer W/System.err: at okhttp3.internal.http.StreamAllocation.findConnection(StreamAllocation.java:172)

11-03 23:52:32.582 29518-29610/dinnerdeal.androiddev.customer W/System.err: at okhttp3.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:123)

11-03 23:52:32.582 29518-29610/dinnerdeal.androiddev.customer W/System.err: at okhttp3.internal.http.StreamAllocation.newStream(StreamAllocation.java:93)

11-03 23:52:32.582 29518-29610/dinnerdeal.androiddev.customer W/System.err: at okhttp3.internal.http.HttpEngine.connect(HttpEngine.java:296)

11-03 23:52:32.582 29518-29610/dinnerdeal.androiddev.customer W/System.err: at okhttp3.internal.http.HttpEngine.sendRequest(HttpEngine.java:248)

11-03 23:52:32.582 29518-29610/dinnerdeal.androiddev.customer W/System.err: at okhttp3.RealCall.getResponse(RealCall.java:243)

11-03 23:52:32.582 29518-29610/dinnerdeal.androiddev.customer W/System.err: at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:201)

11-03 23:52:32.582 29518-29610/dinnerdeal.androiddev.customer W/System.err: at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)

11-03 23:52:32.582 29518-29610/dinnerdeal.androiddev.customer W/System.err: at okhttp3.RealCall.execute(RealCall.java:57)

11-03 23:52:32.582 29518-29610/dinnerdeal.androiddev.customer W/System.err: at dinnerdeal.android.customer.MyApp$1.run(MyApp.java:99)

11-03 23:52:32.582 29518-29610/dinnerdeal.androiddev.customer W/System.err: Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)

11-03 23:52:32.582 29518-29610/dinnerdeal.androiddev.customer W/System.err: at libcore.io.Posix.android_getaddrinfo(Native Method)

11-03 23:52:32.582 29518-29610/dinnerdeal.androiddev.customer W/System.err: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:55)

11-03 23:52:32.582 29518-29610/dinnerdeal.androiddev.customer W/System.err: at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:106)

11-03 23:52:32.582 29518-29610/dinnerdeal.androiddev.customer W/System.err: ... 16 more

Leave a Comment

Comments (2)

photo
1

Hello Allen,

Excuse us for delay. Are you still experience any issues?

Regards

photo
1

Hi Allen.

I can assume several reasons of this problem.

Firstly i want to note, that there are no invocations from any of backendless sdk methods. You use third party lib 'okhttp3' and this lib is not able to properly resolve host address. From the stacktrace i see that it tries to do this through IPv6 protocol - and this may be a problem, because not all custom DNS support IPv6.

Try to set IPv4 forcibly for requests with okhttp3 lib.