调用的接口是:https://vop.baidu.com/server_api
通过spring的restTemplate类调用报了下面这个错:
[c.y.ecp.mapp.alice.speech.impl.context.BaiduSpeechContext :114 ] - 127.0.0.1|68e133ad-606c-4dcd-bc1f-cfeb582146eb|语音识别失败: I/O error on POST request for "https://vop.baidu.com/server_api": 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
收藏
点赞
0
个赞
请登录后评论
TOP
切换版块
这个应该是安全证书问题,怎么获取证书,然后怎么设置
你好,请优先测试官方demo。目前看这不是百度侧返回的错误信息。