根据code获取openid接口问题
发布于 4 年前 作者 guiyingma 12235 次浏览 来自 问答

我们在小程序里通过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 回复

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

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

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

回到顶部