根据code获取openid接口问题

发布于 6 年前作者 guiyingma12485 次浏览最后编辑 6 年前来自 ask

我们在小程序里通过code获取openid接口失败,对应的接口是api.weixin.qq.com/sns/jscode2session
以下是日志信息,期待您的回复。

21-Mar-201822:07:31.853 INFO [http-nio-80-exec-80]org.apache.http.impl.execchain.RetryExec.execute I/O exception(org.apache.http.NoHttpResponseException) caught when processing

request to{s}->https://api.weixin.qq.com:443:

The targetserver failed to respond

21-Mar-201822:07:31.854 INFO [http-nio-80-exec-80]org.apache.http.impl.execchain.RetryExec.execute Retrying request to {s}->api weixin qq

2 回复
qiaojing
qiaojing1 楼6 年前

最近微信登录时也经常遇到:Caused by: org.apache.http.NoHttpResponseException: api.weixin.qq.com:443 failed to respond

调用方法:wxMpService.oauth2getAccessToken(code);

taoye
taoye2 楼4 年前

我也遇到了api.weixin.qq.com:443 failed to respond的错,是获取用户信息和发送客服消息接口报的,未解决。