错误码

最近更新时间: 2026-09-17 00:00:44

功能说明

如果返回结果中存在 Error 字段,则表示调用 API 接口失败。例如:

 {
    "Response": {
        "Error": {
            "Code": "AuthFailure.SignatureFailure",
            "Message": "The provided credentials could not be validated. Please check your signature is correct."
        },
        "RequestId": "ed93f3cb-f35e-473f-b9f3-0d451b8b79c6"
    }
}

Error 中的 Code 表示错误码,Message 表示该错误的具体信息。

错误码列表

公共错误码

错误码 说明
AuthFailure.InvalidSecretId 密钥非法(不是云 API 密钥类型)。
AuthFailure.MFAFailure MFA 错误。
AuthFailure.SecretIdNotFound 密钥不存在。 请在控制台检查密钥是否已被删除或者禁用,如状态正常,请检查密钥是否填写正确,注意前后不得有空格。
AuthFailure.SignatureExpire 签名过期。Timestamp 和服务器时间相差不得超过五分钟,请检查本地时间是否和标准时间同步。
AuthFailure.SignatureFailure 签名错误。 签名计算错误,请对照调用方式中的接口鉴权文档检查签名计算过程。
AuthFailure.TokenFailure token 错误。
AuthFailure.UnauthorizedOperation 请求未 CAM 授权。
DryRunOperation DryRun 操作,代表请求将会是成功的,只是多传了 DryRun 参数。
FailedOperation 操作失败。
InternalError 内部错误。
InvalidAction 接口不存在。
InvalidParameter 参数错误。
InvalidParameterValue 参数取值错误。
LimitExceeded 超过配额限制。
MissingParameter 缺少参数错误。
NoSuchVersion 接口版本不存在。
RequestLimitExceeded 请求的次数超过了频率限制。
ResourceInUse 资源被占用。
ResourceInsufficient 资源不足。
ResourceNotFound 资源不存在。
ResourceUnavailable 资源不可用。
UnauthorizedOperation 未授权操作。
UnknownParameter 未知参数错误。
UnsupportedOperation 操作不支持。
UnsupportedProtocol http(s)请求协议错误,只支持 GET 和 POST 请求。
UnsupportedRegion 接口不支持所传地域。

业务错误码

错误码 说明
MissingParameter 缺少参数错误。
UnsupportedOperation.InstanceDowngrade
FailedOperation.UpdateTopic 主题更新失败。
ResourceInUse.VpcRoute vpc路由已存在。
FailedOperation.CreateSubscription 创建订阅关系失败。
InternalError.IllegalMessage
ResourceUnavailable.CreateFailed
LimitExceeded.Namespaces 实例下命名空间数量超过限额。
InvalidParameterValue 参数取值错误。
ResourcesSoldOut 资源售罄。
ResourceInUse.Role
LimitExceeded.Environments 实例下环境数量超过限制。
ResourceInsufficient
ResourceNotFound.Namspace
FailedOperation.SaveSecretKey
FailedOperation.CreatePulsarClientError 创建TDMQ client的出错。
InvalidParameterValue.AtLeastOne
ResourceInUse.Cluster 集群已存在。
LimitExceeded
ResourceUnavailable.FundRequired
FailedOperation.DeleteEnvironments 环境删除失败。
FailedOperation.CreateRole
FailedOperation.CreateTopic
FailedOperation.UpdateEnvironment 环境更新失败。
ResourceNotFound.BrokerCluster
ResourceNotFound.MsgProduceLog 消息生产日志不存在。
ResourceNotFound.Namespace
ResourceNotFound.Subscription 订阅关系不存在。
InvalidParameterValue.TopicNotFound 上传的topic name错误。
FailedOperation.DescribeProducers 查询生产者数据失败。
ResourceNotFound.Role
OperationDenied.ConsumerRunning 订阅仍在消费中。
InvalidParameter.TokenNotFound 没有获取到正确的 token。
FailedOperation
FailedOperation.VpcInUse 必须先清除关联VPC路由数据才能继续操作。
FailedOperation.RouterRule
FailedOperation.DeleteSubscriptions 删除订阅关系失败。
FailedOperation.CreateEnvironmentRole
ResourceNotFound.Instance
FailedOperation.CreateProducerError 创建producer出错。
ResourceNotFound.Cluster
ResourceNotFound.Topic
ResourceInUse.Namespace 重名,命名空间已存在。
FailedOperation.NamespaceInUse 必须先清除关联命名空间才能继续操作。
InvalidParameterValue.TTL 无效的消息TTL值。
OperationDenied.DefaultEnvironment 默认环境不允许操作。
FailedOperation.ResetMsgSubOffsetByTimestampFailed 消息回溯设置失败。
FailedOperation.GetEnvironmentAttributesFailed 获取环境属性失败。
FailedOperation.CallTrade
InvalidParameter
ResourceNotFound
ResourceInUse.SupportRoute 支撑路由已存在。
InternalError.BrokerService Broker服务异常。
ResourceInUse.BindVpc vpc绑定关系已存在。
ResourceUnavailable
InternalError
FailedOperation.DeleteTopics
FailedOperation.InstanceNotReady
FailedOperation.ReceiveTimeout 接收消息超时,请重试。
InvalidParameterValue.NeedMoreParams 必要参数没有传递。
LimitExceeded.Subscriptions 实例下订阅者数量超过限制。
InvalidParameterValue.ClusterNameDuplication 与现有集群名称重复。
ResourceInUse
ResourceInUse.Topic 重名,主题已存在。
UnauthorizedOperation 未授权操作。
FailedOperation.SetTTL
ResourceInUse.Subscription 重名,订阅关系已存在。
FailedOperation.CreateNamespace 创建命名空间失败。
FailedOperation.CreateCluster
FailedOperation.SendMsgFailed 发送消息失败。
FailedOperation.UpdateEnvironmentRole
MissingParameter.NeedMoreParams
InvalidParameter.Partition
FailedOperation.GetTopicPartitionsFailed 获取主题分区数失败。
FailedOperation.TopicInUse 必须先清除关联主题数据才能继续操作。
FailedOperation.DeleteCluster
FailedOperation.UpdateRole
ResourceUnavailable.SystemUpgrade 系统升级。
ResourceInUse.EnvironmentRole
InternalError.SystemError
InternalError.VpcService VPC服务异常。
InternalError.Retry 重试可以成功。
ResourceNotFound.Msg 找不到指定消息。
InvalidParameter.TenantNotFound 上传的 tenant name 错误。
FailedOperation.CreateSecretKey
InternalError.FailedOperation
UnsupportedOperation
InvalidParameterValue.InvalidParams
ResourceNotFound.MigrationTask
UnknownParameter 未知参数错误。
FailedOperation.DeleteBindVpc 删除vpc绑定关系失败。
InternalError.CloudAPIError 云API错误。
LimitExceeded.Topics 实例下主题数量超过限制。
FailedOperation.DeleteRoles
FailedOperation.CreateEnvironment 环境创建失败。
FailedOperation.DeleteNamespace 删除命名空间失败。
ResourceNotFound.BindVpc vpc绑定关系不存在。
LimitExceeded.Clusters
AuthFailure.UnauthorizedOperation
FailedOperation.CreateBindVpc 创建vpc绑定关系失败。
FailedOperation.DeleteEnvironmentRoles
FailedOperation.RoleInUse
ResourceNotFound.Environment
InternalError.GetAttributesFailed 获取属性失败。
FailedOperation.ReceiveError 接收消息出错。
FailedOperation.DescribeSubscription 查询订阅数据失败。
ResourceNotFound.EnvironmentRole