错误处理
以下是您在使用 Vault API 时可能会遇到的错误代码、如何解读这些错误代码,以及在遇到这些错误代码时应采取的措施。如果您需要有关错误的更多帮助,请查看支持资源。
错误代码 |
说明 |
操作 |
400:错误请求 |
如果输入请求中存在错误,系统会返回此错误代码。 |
请检查该请求,对其进行必要的更改,然后重试。 |
401:凭据无效 |
访问令牌无效或已过期。 |
刷新访问令牌,然后重试。 |
404 |
未找到指定的资源。如果请求包含不存在的事项、预授权或账号,系统会返回此错误代码。 |
|
409 |
指定的资源已存在。 |
请尝试重新获取资源,并根据需要执行更新。 |
429 |
请求超出了 Vault API 配额。 |
查看 Vault API 用量限制,并使用该页面上所述的指数退避算法。 |
500 |
处理请求时发生意外错误。 |
使用指数退避算法重试。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-21。
[null,null,["最后更新时间 (UTC):2024-12-21。"],[[["This page lists common Vault API error codes, their meanings, and suggested solutions."],["Error codes range from bad requests (400) to internal server errors (500), each with specific causes."],["Users should consult the error code descriptions to understand the issue and take the recommended action."],["For quota issues (429), review usage limits and implement exponential backoff strategies."],["If further assistance is needed, consult the provided support resources."]]],[]]