Error Codes

Last updated: 2020-02-28 10:12:13

Feature Description

If there is an Error field in the response, it means that the API call failed. For example:

    "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"

Code in Error indicates the error code, and Message indicates the specific information of the error.

Error Code List

Common Error Codes

Error Code Description
AuthFailure.InvalidSecretId Invalid key (not a TencentCloud API key type).
AuthFailure.MFAFailure MFA failed.
AuthFailure.SecretIdNotFound Key does not exist. Check if the key has been deleted or disabled in the console, and if not, check if the key is correctly entered. Note that whitespaces should not exist before or after the key.
AuthFailure.SignatureExpire Signature expired. Timestamp and server time cannot differ by more than five minutes. Please ensure your current local time matches the standard time.
AuthFailure.SignatureFailure Invalid signature. Signature calculation error. Please ensure you’ve followed the signature calculation process described in the Signature API documentation.
AuthFailure.TokenFailure Token error.
AuthFailure.UnauthorizedOperation The request is not authorized. For more information, see the CAM documentation.
DryRunOperation DryRun Operation. It means that the request would have succeeded, but the DryRun parameter was used.
FailedOperation Operation failed.
InternalError Internal error.
InvalidAction The API does not exist.
InvalidParameter Incorrect parameter.
InvalidParameterValue Invalid parameter value.
LimitExceeded Quota limit exceeded.
MissingParameter A parameter is missing.
NoSuchVersion The API version does not exist.
RequestLimitExceeded The number of requests exceeds the frequency limit.
ResourceInUse Resource is in use.
ResourceInsufficient Insufficient resource.
ResourceNotFound The resource does not exist.
ResourceUnavailable Resource is unavailable.
UnauthorizedOperation Unauthorized operation.
UnknownParameter Unknown parameter.
UnsupportedOperation Unsupported operation.
UnsupportedProtocol HTTP(S) request protocol error; only GET and POST requests are supported.
UnsupportedRegion API does not support the requested region.

Service Error Codes

Error Code Description
FailedOperation Operation failed.
FailedOperation.ApiGateway Failed to create the API gateway trigger.
FailedOperation.CopyFailed Failed to replicate the function.
FailedOperation.CopyFunction Replication to this region is not supported.
FailedOperation.Cos Failed to operate on the COS resources.
FailedOperation.CreateFunction Operation failed.
FailedOperation.CreateNamespace Failed to create the namespace.
FailedOperation.CreateTrigger This operation is not supported in the current function state.
FailedOperation.DeleteNamespace The default namespace cannot be deleted.
FailedOperation.FunctionNameStatusError Failed to update the code. The function is deploying.
FailedOperation.FunctionStatusError Operation failed. The function is deploying.
FailedOperation.InvokeFunction Failed to invoke the function.
FailedOperation.Namespace This namespace already exists.
FailedOperation.OperationConflict Operation conflict.
FailedOperation.PublishVersion This operation is not supported in the current function state.
FailedOperation.UpdateFunctionCode This operation is not supported in the current function state.
InternalError Internal error.
InternalError.ApiGateway Internal errors occurred during the creation of the apigw trigger.
InternalError.Ckafka ckafka API failure.
InternalError.Cmq Failed to delete the cmq trigger.
InternalError.Cos Failed to update the trigger.
InternalError.ES ES error.
InternalError.Exception Internal service exception.
InternalError.System Internal system error.
InvalidParameter.Payload Invalid request parameter.
InvalidParameterValue Incorrect parameter value.
InvalidParameterValue.ApiGateway ApiGateway parameter error.
InvalidParameterValue.Cdn Cdn error.
InvalidParameterValue.Ckafka Ckafka error.
InvalidParameterValue.Cls Cls error.
InvalidParameterValue.Cmq Cmq error.
InvalidParameterValue.Code Code error.
InvalidParameterValue.CodeSecret CodeSecret error.
InvalidParameterValue.CodeSource CodeSource error.
InvalidParameterValue.Cos Cos error.
InvalidParameterValue.CosBucketName Invalid CosBucketName.
InvalidParameterValue.CosObjectName Invalid CosObjectName.
InvalidParameterValue.CustomArgument CustomArgument exceeds the length limit.
InvalidParameterValue.DateTime DateTime error.
InvalidParameterValue.DefaultNamespace Failed to create the default namespace.
InvalidParameterValue.Description Description error.
InvalidParameterValue.EipConfig EipConfig parameter error.
InvalidParameterValue.Environment Environment error.
InvalidParameterValue.Filters Filters parameter error.
InvalidParameterValue.FunctionName The function does not exist.
InvalidParameterValue.GitBranch The format of GitBranch is incorrect.
InvalidParameterValue.GitDirectory The format of GitDirectory is incorrect.
InvalidParameterValue.GitPassword The format of GitPassword is incorrect.
InvalidParameterValue.GitUrl The format of GitUrl is incorrect.
InvalidParameterValue.GitUserName The format of GitUserName is incorrect.
InvalidParameterValue.Handler Handler error.
InvalidParameterValue.InlineZipFile Invalid InlineZipFile.
InvalidParameterValue.Layers Layers parameter error.
InvalidParameterValue.Limit Limit error.
InvalidParameterValue.MemorySize MemorySize error.
InvalidParameterValue.Namespace Namespace error.
InvalidParameterValue.NamespaceInvalid Incorrect Namespace. A namespace contains up to 30 characters of letters, digits, hyphens (-), and underscores (_).
InvalidParameterValue.Offset Invalid offset.
InvalidParameterValue.Order Order error.
InvalidParameterValue.Orderby Orderby error.
InvalidParameterValue.Param The input parameter is not in the standard JSON format.
InvalidParameterValue.PublicNetConfig The PublicNetConfig parameter is invalid.
InvalidParameterValue.Runtime Runtime error.
InvalidParameterValue.SearchKey The searchkey is not Keyword, Tag, or Runtime.
InvalidParameterValue.ServiceName Invalid ServiceName.
InvalidParameterValue.StartTimeOrEndTime You need to specify both the start time and the end time.
InvalidParameterValue.SystemEnvironment The system environment variable is invalid.
InvalidParameterValue.TempCosObjectName Invalid TempCosObjectName.
InvalidParameterValue.TriggerDesc TriggerDesc error.
InvalidParameterValue.TriggerName TriggerName error.
InvalidParameterValue.Type Type error.
InvalidParameterValue.ZipFile Invalid ZipFile.
LimitExceeded.Cdn The Cdn usage exceeds the upper limit.
LimitExceeded.Function The number of functions exceeds the upper limit.
LimitExceeded.FunctionOnTopic The number of functions under the same topic exceeds the upper limit.
LimitExceeded.Memory The memory exceeds the upper limit.
LimitExceeded.Namespace The number of namespaces exceeds the upper limit.
LimitExceeded.Offset Offset exceeds the upper limit.
LimitExceeded.Timeout Timeout exceeds the upper limit.
LimitExceeded.Trigger The number of Triggers exceeds the upper limit.
MissingParameter.Code Failed to import Code.
MissingParameter.Runtime Runtime is missing.
ResourceInUse.Cdn Cdn is in use.
ResourceInUse.Cmq Cmq is in use.
ResourceInUse.Cos Cos is in use.
ResourceInUse.Function This function already exists.
ResourceInUse.FunctionName This FunctionName already exists.
ResourceInUse.Namespace This Namespace already exists.
ResourceInUse.Trigger This TriggerName already exists.
ResourceInUse.TriggerName This TriggerName already exists.
ResourceInsufficient.COS Insufficient COS resources.
ResourceNotFound.Cdn Cdn does not exist.
ResourceNotFound.Ckafka Ckafka does not exist.
ResourceNotFound.Cmq Cmq does not exist.
ResourceNotFound.Cos Cos does not exist.
ResourceNotFound.Demo Demo does not exist.
ResourceNotFound.Function The function does not exist.
ResourceNotFound.FunctionName The function does not exist.
ResourceNotFound.FunctionVersion The function version does not exist.
ResourceNotFound.Layer The layer does not exist.
ResourceNotFound.Namespace Namespace does not exist.
ResourceNotFound.Role The role does not exist.
ResourceNotFound.Timer Timer does not exist.
ResourceNotFound.Trigger The trigger does not exist.
ResourceNotFound.Version The version does not exist.
ResourceNotFound.Vpc The VPC or subnet does not exist.
ResourceUnavailable.InsufficientBalance Your balance is insufficient. Please top up first.
ResourceUnavailable.Namespace The Namespace is not available.
UnauthorizedOperation Unauthorized operation.
UnauthorizedOperation.CAM CAM authentication failed.
UnauthorizedOperation.CodeSecret You do not have permissions to access the code.
UnauthorizedOperation.CreateTrigger You do not have permissions.
UnauthorizedOperation.DeleteFunction Unauthorized operation.
UnauthorizedOperation.DeleteTrigger You do not have permissions.
UnauthorizedOperation.Region Region error.
UnauthorizedOperation.Role You do not have permissions to access your Cos resources.
UnauthorizedOperation.TempCosAppid The Appid of TempCos is not consistent with that of the request account.
UnauthorizedOperation.UpdateFunctionCode Operation failed.
UnsupportedOperation.Cdn Cdn is not supported.
UnsupportedOperation.Cos Cos operation is not supported.
UnsupportedOperation.Region This region is not supported.
UnsupportedOperation.Trigger Trigger operation is not supported.