收藏
回答

调用"https://api.weixin.qq.com/sns/jscode2session"报?

调用这个接口时,报错信息为

11:27:01 [http-nio-8061-exec-8] ERROR c.z.s.s.c.SysStuUserController - I/O error on GET request for "https://api.weixin.qq.com/sns/jscode2session": sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

不知道啥问题,APPID和secret都是对的


回答关注问题邀请回答
收藏

1 个回答

  • Mr.Zhao
    Mr.Zhao
    2022-08-30

    这是证书问题,跟appid没关系

    2022-08-30
    有用
    回复 2
    • 薛小白
      薛小白
      2022-08-30
      别的项目也没用到证书啊,直接获取到了,请问下怎么配置这个证书?
      2022-08-30
      回复
    • Mr.Zhao
      Mr.Zhao
      2022-08-30回复薛小白
      比如百度HttpClient 忽略证书检查
      2022-08-30
      回复
登录 后发表内容