我们在小程序里通过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
最近微信登录时也经常遇到:Caused by: org.apache.http.NoHttpResponseException: api.weixin.qq.com:443 failed to respond
调用方法:wxMpService.oauth2getAccessToken(code);