html52.com
我爱小程序-开发者交流社区

微信小程序自己开发的后台获取openid极其慢

微信小程序通过code传递到自开发服务器上,然后由后台服务器进行openid请求的相关拼装,本地测试环境运行时极快,平均一秒即可获取结果。但是将该程序放在生产环境的时候变的极慢平均在30秒以上,有时候还有会报错。


报错信息如下:

 2019-01-24 10:36:48,425 ERROR (ExceptionHandlerAdvice.java:30)- 发生异常,异常信息为org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://api.weixin.qq.com/sns/jscode2session": Remote host closed connection during handshake; nested exception is javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake


请问有什么好的解决办法?

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付