java.net.UnknownHostException

Unable to resolve host "api.weibo.com": No address associated with hostname

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web520

  • Unable to resolve host "api.weibo.com": No address associated with hostname
  • Unable to resolve host "api.weibo.com": No address associated with hostname
  • via Coderanch by Johnny Smithone, 6 months ago
    Unable to resolve host "graph.facebook.com": No address associated with hostname
  • Stack trace

    • java.net.UnknownHostException: Unable to resolve host "api.weibo.com": No address associated with hostname at java.net.InetAddress.lookupHostByName(InetAddress.java:470) at java.net.InetAddress.getAllByNameImpl(InetAddress.java:252) at java.net.InetAddress.getAllByName(InetAddress.java:215) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:185) at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:172) at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:130) at org.apache.http.impl.client.DefaultRequestDirector.executeOriginal(DefaultRequestDirector.java:1337) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:705) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:579) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:503) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:481) at com.sina.weibo.sdk.net.HttpManager.requestHttpExecute(HttpManager.java:180) at com.sina.weibo.sdk.net.HttpManager.openUrl(HttpManager.java:112) at com.sina.weibo.sdk.net.AsyncWeiboRunner.request(AsyncWeiboRunner.java:85) at com.sina.weibo.sdk.openapi.AbsOpenAPI.requestSync(AbsOpenAPI.java:113) at com.wenming.weiswift.api.UsersAPI.showSync(UsersAPI.java:97) at com.wenming.weiswift.mvp.model.imp.UserModelImp.showUserDetailSync(UserModelImp.java:82) at com.wenming.weiswift.mvp.model.imp.UserModelImp$1.run(UserModelImp.java:224) at java.lang.Thread.run(Thread.java:818) Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname) at libcore.io.Posix.android_getaddrinfo(Native Method) at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:55) at java.net.InetAddress.lookupHostByName(InetAddress.java:451) ... 18 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    4 times, 2 months ago
    2 times, 4 months ago
    Once, 6 months ago
    33 times, 6 months ago
    Once, 1 year ago
    38 more bugmates