线上内网机器走外网代理,访问api报错

jpush
api
标签: #<Tag:0x00007fb846263c10> #<Tag:0x00007fb846263a30>

(汤姆猴) #1
2018-01-05 15:36:31 [JPushHandler.java:195, main:2406261]  Push message error,using Jpush api.error {}
cn.jiguang.common.resp.APIConnectionException: Connection IO error. 
Can not connect to JPush Server. Please ensure your internet connection is ok. 
If the problem persists, please let us know at support@jpush.cn.
	at cn.jiguang.common.connection.NativeHttpClient._doRequest(NativeHttpClient.java:249)
	at cn.jiguang.common.connection.NativeHttpClient.doRequest(NativeHttpClient.java:99)
	at cn.jiguang.common.connection.NativeHttpClient.sendPost(NativeHttpClient.java:86)
	at cn.jpush.api.push.PushClient.sendPush(PushClient.java:163)
	at cn.jpush.api.JPushClient.sendPush(JPushClient.java:193)
Caused by: java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(SocketInputStream.java:210)
	at java.net.SocketInputStream.read(SocketInputStream.java:141)
	at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
	at sun.security.ssl.InputRecord.read(InputRecord.java:503)
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)

#2

这个就检查你们的代理方式吧,极光只需求域名不被屏蔽,可访问


(汤姆猴) #3

你们那边有过类似的问题吗
Caused by: java.net.SocketException: Connection reset


#4

有过的反馈都是用户自身的问题,去检查你们的网络,是否有拦截。

搜索该报错,出现的情况是:连接断开后的读和写操作引起的报错