错误码
调用接口出错后,将不会返回结果数据。调用方可根据每个接口对应的错误码来定位错误原因。 当调用出错时,HTTP 请求返回一个 4xx 或 5xx 的 HTTP 状态码。返回的消息体中是具体的错误代码及错误信息。在调用方找不到错误原因时,可以联系华为云客服,并提供错误码,以便我们尽快帮您解决问题。
错误响应Body体格式说明
当接口调用出错时,会返回错误码及错误信息说明,错误响应的Body体格式如下所示。
{
"error_msg": "The format of message is error",
"error_code": "EMS.00010001"
}
其中,error_code表示错误码,error_msg表示错误描述信息。
错误码说明
当您调用API时,如果遇到“APIGW”开头的错误码,请参见API网关错误码进行处理。
|
状态码 |
错误码 |
错误信息 |
描述 |
处理措施 |
|---|---|---|---|---|
|
400 |
ems.00030002 |
CoreDNS specification check failed. Required for %d nodes: replicas≥[%d], CPU≥[%s], Memory≥[%s]. Please upgrade the CoreDNS add-on flavor first. |
当前k8s集群CoreDNS插件配置不满足推荐配额要求。请尝试更新CoreDNS插件配置。 |
按照《用户指南》的“部署EMS”章节,更新当前k8s集群CoreDNS插件配置。 |
|
400 |
ems.00030002 |
CIE-collector add-on specification check failed. you explicitly configured the enable_custom_metrics=true, the content is not the configuration used by the EMS service. Please set the enable_custom_metrics=false or create ems cluster with monitor_enable=false in request body. |
当前k8s集群云原生监控插件已配置“监控数据上报至第三方监控平台”,会导致监控对接失败。 |
去除当前k8s集群云原生监控插件“监控数据上报至第三方监控平台”或在创建集群时取消“监控对接”配置。 |
|
400 |
ems.00030033 |
the cluster name: [%s] exist, please change cluster name |
当前EMS集群名称已存在。 |
修改需创建的EMS集群名称。 |
|
400 |
ems.00030034 |
Cluster cannot be deleted in current state: [%s] |
当前EMS集群已处在不可删除状态。 |
请参考返回的message,或联系技术支持。 |
|
400 |
common.00000400 |
[%s].[%s]: must be greater/less than or equal to [%s] |
集群查询url参数超过限制 |
请检查url参数和格式是否正确。 |
|
401 |
common.01010018 |
Auth token failed, reason is:{%s} |
token过期或无效。 |
请重新获取token,并在使用时确保token字符串的完整性。 |
|
404 |
ems.00030005 |
Cluster not found: [%s]. |
未找到EMS集群。 |
请确认要访问的集群是否已被删除。 |
|
500 |
ems.00030002 |
Failed to create cluster. |
集群创建失败。 |
请重试或联系客服。 |
|
500 |
ems.00040003 |
Failed to match tenant project id |
租户Id验证失败。 |
请参考返回的message,或联系技术支持。 |
|
500 |
ems.00030003 |
Failed to update cluster status to DELETING |
当前EMS集群状态转换错误。 |
请参考返回的message,或联系技术支持。 |