功能说明
如果返回结果中存在 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 表示该错误的具体信息。
错误码列表
公共错误码
| 错误码 | 说明 |
|---|---|
| ActionOffline | 接口已下线。 |
| AuthFailure.InvalidAuthorization | 请求头部的 Authorization 不符合腾讯云标准。 |
| 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 | 参数取值错误。 |
| InvalidRequest | 请求 body 的 multipart 格式错误。 |
| IpInBlacklist | IP 地址在黑名单中。 |
| IpNotInWhitelist | IP 地址不在白名单中。 |
| LimitExceeded | 超过配额限制。 |
| MissingParameter | 缺少参数。 |
| NoSuchProduct | 产品不存在 |
| NoSuchVersion | 接口版本不存在。 |
| RequestLimitExceeded | 请求的次数超过了频率限制。 |
| RequestLimitExceeded.GlobalRegionUinLimitExceeded | 主账号超过频率限制。 |
| RequestLimitExceeded.IPLimitExceeded | IP 限频。 |
| RequestLimitExceeded.UinLimitExceeded | 主账号限频。 |
| RequestSizeLimitExceeded | 请求包超过限制大小。 |
| ResourceInUse | 资源被占用。 |
| ResourceInsufficient | 资源不足。 |
| ResourceNotFound | 资源不存在。 |
| ResourceUnavailable | 资源不可用。 |
| ResponseSizeLimitExceeded | 返回包超过限制大小。 |
| ServiceUnavailable | 当前服务暂时不可用。 |
| UnauthorizedOperation | 未授权操作。 |
| UnknownParameter | 未知参数错误,用户多传未定义的参数会导致错误。 |
| UnsupportedOperation | 操作不支持。 |
| UnsupportedProtocol | http(s) 请求协议错误,只支持 GET 和 POST 请求。 |
| UnsupportedRegion | 接口不支持所传地域。 |
业务错误码
| 错误码 | 说明 |
|---|---|
| AuthFailure | CAM签名/鉴权错误。 |
| AuthFailure.ErrCodeNoPurchased | 当前实例未购买api安全套餐 |
| FailedOperation.CKafkaInternalError | CKafka内部错误。 |
| FailedOperation.CLSDBOperationFailed | 调用CLS日志服务API失败 |
| FailedOperation.CLSInternalError | CLS内部错误。 |
| FailedOperation.CLSResourcesNotFound | 日志主题正在清空中 |
| FailedOperation.CertificateNotFound | 证书不存在 |
| FailedOperation.ClickHouseOperationFailed | 操作CH数据库失败 |
| FailedOperation.InvalidContext | FailedOperation.InvalidContext |
| FailedOperation.MongoOperationFailed | 操作Mongo数据库失败 |
| FailedOperation.MysqlDBOperationFailed | 操作Mysql数据库失败 |
| FailedOperation.QueryError | FailedOperation.QueryError |
| FailedOperation.RedisOperationFailed | 操作Redis数据库失败 |
| FailedOperation.SearchTimeout | FailedOperation.SearchTimeout |
| FailedOperation.SessionInUsed | 删除的Session正在被启用 |
| FailedOperation.SyntaxError | FailedOperation.SyntaxError |
| FailedOperation.TagQpsLimit | FailedOperation.TagQpsLimit |
| FailedOperation.TheNumberOfAddedBlackAndWhiteListExceedsTheUpperLimit | 黑白名单添加数超过上限 |
| FailedOperation.TheNumberOfOneTimeDeletionsReachedTheUpperLimit | 一次性删除数量达到上限 |
| FailedOperation.Timeout | FailedOperation.Timeout |
| FailedOperation.TopicClosed | FailedOperation.TopicClosed |
| FailedOperation.TopicIsolated | FailedOperation.TopicIsolated |
| InternalError.AsynchronousCallFailed | 异步调用失败 |
| InternalError.DBErr | DBErr |
| InternalError.SSLCallFailed | 调用SSL证书接口发生内部错误 |
| InternalError.SearchError | InternalError.SearchError |
| InternalError.SearchFailed | InternalError.SearchFailed |
| InternalError.ServerBusy | InternalError.ServerBusy |
| InternalError.Unknown | InternalError.Unknown |
| InternalError.UnknownErr | 存在内部错误,请联系我们 |
| InvalidParameter.BotNameRepeatErr | 命名重复 |
| InvalidParameter.BotSceneNotExistErr | Bot场景不存在 |
| InvalidParameter.CertificateCheckErr | 证书和私钥检查不通过 |
| InvalidParameter.CertificationParameterErr | 证书信息参数错误 |
| InvalidParameter.DomainExceedsLimitErr | 域名数量超出限制错误 |
| InvalidParameter.DomainNotRecord | 域名未备案 |
| InvalidParameter.InvalidCertificate | 证书内容非法。 |
| InvalidParameter.LogicErr | 逻辑错误:SQL检索语句中的逻辑错误也可能导致错误。例如,使用错误的运算符、使用错误的条件等 |
| InvalidParameter.PortParameterErr | 端口信息参数错误 |
| InvalidParameter.ProtectionDomainParameterErr | 防护域名参数错误 |
| InvalidParameter.QueryCertBySSLIDFailed | 根据ID查询证书失败。 |
| InvalidParameter.QueryStringSyntaxErr | 语法错误:逻辑表达式语法解析出错 |
| InvalidParameter.SQLSyntaxErr | 语法错误:SQL检索语句必须遵循特定的语法规则,如果语法错误,就会导致SQL语句无法执行。例如,缺少关键字、拼写错误、缺少分号等。 |
| InvalidParameter.SupportTLSConfFailed | 当前实例版本不支持开启TLS自定义,请升级到高级版及以上 |
| InvalidParameter.TLSParameterErr | TLS或加密套件参数错误 |
| InvalidParameter.TypeMismatch | 数据类型错误:SQL检索语句中的数据类型必须与数据库中的数据类型匹配,否则会导致错误。例如,将字符串与整数进行比较、将日期格式不正确等。 |
| InvalidParameter.UnauthorizedOperationParameterErr | 越权参数错误 |
| InvalidParameter.UnknownAction | UnknownAction |
| InvalidParameter.UpstreamParameterErr | 回源信息参数错误 |
| InvalidParameter.XFFResetParameterErr | XFF重置参数错误 |
| InvalidParameterValue.CELLengthExceedLimit | 自定义规则CEL逻辑表达式长度超过10240字符 |
| InvalidParameterValue.CELSyntaxErr | 自定义规则CEL逻辑表达式语法错误 |
| InvalidParameterValue.InvalidRequest | InvalidRequest |
| LimitExceeded.Export | LimitExceeded.Export |
| LimitExceeded.LogSearch | LimitExceeded.LogSearch |
| LimitExceeded.SearchResources | LimitExceeded.SearchResources |
| LimitExceeded.SearchResultTooLarge | LimitExceeded.SearchResultTooLarge |
| LimitExceeded.SpecificationErr | SpecificationErr |
| OperationDenied | 操作被拒绝。 |
| OperationDenied.ACLFailed | OperationDenied.ACLFailed |
| OperationDenied.AccountDestroy | OperationDenied.AccountDestroy |
| OperationDenied.AccountIsolate | OperationDenied.AccountIsolate |
| OperationDenied.AccountNotExists | OperationDenied.AccountNotExists |
| OperationDenied.AnalysisSwitchClose | OperationDenied.AnalysisSwitchClose |
| OperationDenied.NewSyntaxNotSupported | OperationDenied.NewSyntaxNotSupported |
| OperationDenied.OperationNotSupportInSearchLow | OperationDenied.OperationNotSupportInSearchLow |
| ResourceInUse.EmptyErr | EmptyErr |
| ResourceNotFound.ExportNotExist | ResourceNotFound.ExportNotExist |
| ResourceNotFound.LogsetNotExist | ResourceNotFound.LogsetNotExist |
| ResourceNotFound.NotFound | ResourceNotFound.NotFound |
| ResourceNotFound.TopicNotExist | ResourceNotFound.TopicNotExist |
| ResourceUnavailable.DomainIpv6InConfigErr | IPV6网络正在分配,请耐心等待 |
| ResourceUnavailable.SSLCertificateErr | SSL证书ID关联的证书内容错误 |
| ResourcesSoldOut | 资源售罄。 |
| UnsupportedOperation.BotServiceNotSubscribeErr | Bot套餐未购买 |
| UnsupportedOperation.InvalidRequest | InvalidRequest |