com.sina.weibo.sdk.exception.WeiboException: java.net.UnknownHostException: Unable to resolve host "api.weibo.com": 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

,
Expert tip

This is a bug that happens in Slide in versions 4.2.0 and before. Update to 4.2.2 or further to fix it.

Solutions on the web

via GitHub by wenmingvs
, 1 year ago
java.net.UnknownHostException: Unable to resolve host "api.weibo.com": No address associated with hostname
com.sina.weibo.sdk.exception.WeiboException: java.net.UnknownHostException: Unable to resolve host "api.weibo.com": No address associated with hostname
at java.net.InetAddress.lookupHostByName(InetAddress.java:440)
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 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)

Users with the same issue

7 times, 1 year ago
Once, 1 year ago
Once, 1 year ago
Once, 11 months ago
43 times, 11 months ago
164 more bugmates

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