PKIX path building failed

问题描述

请求 Avata API 报错

报错示例

I/O error on POST request for "https://stage.apis.avata.bianjie.ai/v1beta1/account": 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

解决方案

建议使用 Avata 官方 SDK:https://github.com/bianjieai/avata-sdk-java