We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b50b8b commit a53597cCopy full SHA for a53597c
volcenginesdkarkruntime/_client.py
@@ -361,6 +361,8 @@ def _sync_load_cert_by_auth(self, ep: str) -> str:
361
body={"model": ep}, cast_to=self.CertificateResponse)
362
except Exception as e:
363
raise ArkAPIError("Getting Certificate failed: %s\n" % e)
364
+ if 'error' in resp:
365
+ raise ArkAPIError("Getting Certificate failed: %s\n" % resp['error'])
366
return resp['Certificate']
367
368
def _save_cert_to_file(self, ep: str, cert_pem: str):
0 commit comments