jpush 服务端推送每天0点左右推送请求出现timeout,推送失败

bestwu
2016-07-18 06:33 1.9k 0

服务端使用的是java sdk . cn.jpush.api:jpush-client:3.2.9. 几乎每天都会出这个情况

cn.jpush.api.common.resp.APIConnectionException: Read timed out.
    Read response from JPush Server timed out.
    If this is a Push action, you may not want to retry.
    It may be due to slowly response from JPush server, or unstable connection.
    If the problem persists, please let us know at support@jpush.cn.
     at cn.jpush.api.common.connection.NativeHttpClient.doRequest(NativeHttpClient.java:103)
     at cn.jpush.api.common.connection.NativeHttpClient.sendPost(NativeHttpClient.java:85)
     at cn.jpush.api.push.PushClient.sendPush(PushClient.java:160)
     at com.lvshiv.api.assist.JPushClient.sendPush(JPushClient.java:80)
     at com.lvshiv.api.assist.JPushClient.sendFollowNotification(JPushClient.java:404)
     at com.lvshiv.api.config.ScheduledTasks.lambda$executeFakeJob$0(ScheduledTasks.java:101)
     at java.util.ArrayList.forEach(ArrayList.java:1249)
     at com.lvshiv.api.config.ScheduledTasks.executeFakeJob(ScheduledTasks.java:82)
     at com.lvshiv.api.config.ScheduledTasks$$FastClassBySpringCGLIB$$b8908c84.invoke(<generated>)
     at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
     at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
     at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)
     at com.lvshiv.api.config.ScheduledTasks$$EnhancerBySpringCGLIB$$e782a14f.executeFakeJob(<generated>)
     at sun.reflect.GeneratedMethodAccessor538.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:498)
     at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)
     at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
     at java.lang.Thread.run(Thread.java:745)
    Caused by: java.net.SocketTimeoutException: Read timed out
     at cn.jpush.api.common.connection.NativeHttpClient._doRequest(NativeHttpClient.java:240)
     at cn.jpush.api.common.connection.NativeHttpClient.doRequest(NativeHttpClient.java:98)
     ... 29 more

1个回答

热门排序
  • javen | Co-founder
    2016-07-18 07:55

    的确是当前的一个问题。

    我们内部正在处理。

    感谢反馈!