Comments (4)
from easyhttp.
2023-07-02 11:11:02.644 15597-16359/com.hjq.easy.demo E/EasyHttp DownloadApi@2201235: Unable to resolve host "api.hanximeng.com": No address associated with hostname
2023-07-02 11:11:02.654 15597-16359/com.hjq.easy.demo E/EasyHttp DownloadApi@2201235: 服务器连接异常,请稍后再试
com.hjq.http.exception.ServerException: 服务器连接异常,请稍后再试
at com.hjq.easy.demo.http.model.RequestHandler.requestFail(RequestHandler.java:162)
at com.hjq.easy.demo.http.model.RequestHandler.downloadFail(RequestHandler.java:196)
at com.hjq.http.callback.DownloadCallback.onFailure(DownloadCallback.java:163)
at com.hjq.http.callback.BaseCallback.onFailure(BaseCallback.java:98)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:211)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
at libcore.io.Linux.android_getaddrinfo(Native Method)
at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:136)
at libcore.io.BlockGuardOs.android_getaddrinfo(BlockGuardOs.java:221)
at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:136)
at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:135)
at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:103)
at java.net.InetAddress.getAllByName(InetAddress.java:1152)
at okhttp3.Dns$1.lookup(Dns.java:40)
at okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:185)
at okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.java:149)
at okhttp3.internal.connection.RouteSelector.next(RouteSelector.java:84)
at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:215)
at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:127)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:257)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:201)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
from easyhttp.
小伙子,这个是 DNS 的问题,一看就是服务器的问题,和框架没有什么关系,需要你自行排查和解决,我目前只处理框架的 Bug 和建议。
from easyhttp.
好的,谢谢大神
from easyhttp.
Related Issues (20)
- [疑惑]:You haven't initialized the configuration yet HOT 1
- [建议]:建议可以每个请求单独设置header HOT 2
- [Bug]:USE_CACHE_FIRST模式下,无法更新缓存
- [疑惑]:如何获取当前请求的接口地址 HOT 6
- [建议]:框架可以支持到 protobuf 吗 HOT 3
- [疑惑]: HOT 1
- [Bug]:java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType HOT 9
- [Bug]:网络请求时出现时间解析错误 HOT 3
- [Bug]:java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.gj.aos.chat.mode.HttpData HOT 1
- [疑惑]:可以优先使用IPV4来访问后台服务器吗 HOT 4
- [Bug]:无网络下请求程序闪退 HOT 9
- [Bug]:
- [疑惑]:下载文件配合EasyWindow使用,下载完关闭浮窗报错 HOT 1
- [疑惑]:轮子哥,post接口,body里放数组对象,但是对象没有key 该怎么放啊,着急,在线等 HOT 2
- [疑惑]:下载请求怎么设置超时时间 HOT 5
- [疑惑]:如何添加单个网络请求的header或者cookies HOT 6
- [疑惑]:如何基于此网络框架,封装一个中间层 HOT 1
- [Bug]:多个接口header里面传同样key不同vaule,同时调用,会出现传错的问题 HOT 3
- [疑惑]:请问GET请求支持传key同名value值不同的参数吗 HOT 3
- [建议]:增加支持ProtoBuf格式数据解析 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easyhttp.