开发者社区> 问答> 正文

EMAS在用移动推送mpush的android端sdk, 功能正常,APP运行时经常有接服务器失败

EMAS在用移动推送mpush的android端sdk, 功能正常,但是APP运行时经常有这样连接服务器失败的log,这个怎样处理?E/EMASNAccs_NetworkSdk: [awcn.DispatchCore]|[seq:AMDC2] amdc request fail java.net.SocketTimeoutException: failed to connect to amdcopen.m.taobao.com/203.119.205.154 (port 80) from /192.168.4.72 (port 44270) after 20000ms at libcore.io.IoBridge.connectErrno(IoBridge.java:190) E/EMASNAccs_NetworkSdk: at libcore.io.IoBridge.connect(IoBridge.java:134) at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:142) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:390) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:230) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:212) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:436) at java.net.Socket.connect(Socket.java:621) at com.android.okhttp.internal.Platform.connectSocket(Platform.java:182) at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:145) at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:116) at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:186) at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:128) at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:97) at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:289) at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:232) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:465) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:262) at anet.channel.strategy.dispatch.b.a(Taobao:206) at anet.channel.strategy.dispatch.b.a(Taobao:122) at anet.channel.strategy.dispatch.a$a.run(Taobao:78) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) 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:923) I/EMASNAccs_NetworkSdk: [awcn.DispatchCore]|[seq:AMDC4] send amdc request url:http://amdcopen.m.taobao.com/amdc/mobileDispatch?appkey=333624110&platform=android&v=5.0 I/EMASNAccs_NetworkSdk: host:amdcopen.m.taobao.com D/EMASNAccs_NetworkSdk: [awcn.DispatchCore]|[seq:AMDC4] amdc request. headers:{Accept-Encoding=[gzip], Connection=[close], Host=[amdcopen.m.taobao.com]}

展开
收起
鸡蛋灌饼儿 2023-02-07 12:27:51 1005 0
2 条回答
写回答
取消 提交回答
  • 这种情况可能是maven依赖问题。

    2023-02-09 17:40:52
    赞同 展开评论 打赏
  • maven依赖升级 SDK版本到 3.8.2 即可——该回答整理自钉群“应用研发平台EMAS开发者交流群”

    2023-02-07 16:40:17
    赞同 展开评论 打赏
来源圈子
更多
收录在圈子:
基于阿里巴巴以及合作伙伴的最佳实践,围绕大前端、云原生领域的相关技术热点(小程序、Serverless、应用中间件、低代码、DevOps)展开行业探讨,与开发者一起探寻云原生时代应用研发的新范式。
相关文档: 移动研发平台
问答排行榜
最热
最新

相关电子书

更多
如何运维千台以上游戏云服务器 立即下载
网站/服务器取证 实践与挑战 立即下载
ECS快储存加密技术 立即下载