java post调用https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=
以下报错:
org.apache.http.conn.HttpHostConnectException: Connect to api.weixin.qq.com:443 [api.weixin.qq.com/116.128.170.42, api.weixin.qq.com/116.128.184.169, api.weixin.qq.com/112.65.193.153] failed: Connection timed out: connect
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:158)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
使用postman调用结果正常。
麻烦问下,什么原因导致。
你这是请求超时了,用服务器直接联调吧。
本地开发报错?