I/O error on GET request for "https://api.weixin.qq.com/sns/jscode2session": sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed; nested exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed
真机调试或者体验版
正式环境是好的,就是体验版的,外网ip请求到自己的后端服务,自己的后端服务请求微信的服务端https://api.weixin.qq.com/sns/jscode2session 接口报这个错误。发现体验版的用内网wifi可以。
参考这个
https://developers.weixin.qq.com/community/develop/doc/0000e000c84f20c7946a655ae56c00?highLine=auth.code2Session