io.ably.lib.types.AblyException$HostFailedException: java.net.UnknownHostException: Unable to resolve host "www.ably.io": No address associated with hostname

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by mattheworiordan
, 1 year ago
java.net.UnknownHostException: Unable to resolve host "www.ably.io": No address associated with hostname
io.ably.lib.types.AblyException$HostFailedException: java.net.UnknownHostException: Unable to resolve host "www.ably.io": No address associated with hostname
at libcore.io.Posix.android_getaddrinfo(Native Method)
at java.net.InetAddress.lookupHostByName(InetAddress.java:438)
at java.net.InetAddress.getAllByNameImpl(InetAddress.java:252)
at java.net.InetAddress.getAllByName(InetAddress.java:215)
at com.android.okhttp.HostResolver$1.getAllByName(HostResolver.java:29)
at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:232)
at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:124)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:272)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:332)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:500)
at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
at io.ably.lib.http.Http.readResponse(Http.java:408)
at io.ably.lib.http.Http.httpExecute(Http.java:329)
at io.ably.lib.http.Http.getUri(Http.java:194)
at io.ably.lib.rest.Auth.requestToken(Auth.java:381)
at io.ably.lib.http.TokenAuth.authorise(TokenAuth.java:54)
at io.ably.lib.rest.Auth.authorise(Auth.java:325)
at io.ably.lib.rest.Auth.getAuthParams(Auth.java:539)
at io.ably.lib.transport.WebSocketTransport.connect(WebSocketTransport.java:59)
at io.ably.lib.transport.ConnectionManager.connectImpl(ConnectionManager.java:614)
at io.ably.lib.transport.ConnectionManager.handleStateRequest(ConnectionManager.java:421)
at io.ably.lib.transport.ConnectionManager.run(ConnectionManager.java:529)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

17 times, 4 months ago
3 times, 4 months ago
2 times, 5 months ago
4 times, 5 months ago
2 times, 9 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.