调用短语音识别接口报了安全证书问题
鑫淼heaven 发布于2020-11-30 浏览:306 回复:2
0
收藏

调用的接口是: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
个赞
共2条回复 最后由鑫淼heaven回复于2020-11-30
#3鑫淼heaven回复于2020-11-30

这个应该是安全证书问题,怎么获取证书,然后怎么设置

0
#2chrisberg923回复于2020-11-30

你好,请优先测试官方demo。目前看这不是百度侧返回的错误信息。

0
TOP
切换版块