Error Codes

Last updated: 2021-01-25 15:01:54

    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
    UnsupportedOperation Unsupported operation.
    ResourceInUse Resource is in use.
    InternalError Internal error.
    RequestLimitExceeded The number of requests exceeds the frequency limit.
    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.
    LimitExceeded Quota limit exceeded.
    NoSuchVersion The API version does not exist.
    ResourceNotFound The resource does not exist.
    AuthFailure.SignatureFailure Invalid signature. Signature calculation error. Please ensure you’ve followed the signature calculation process described in the Signature API documentation.
    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.
    UnsupportedRegion API does not support the requested region.
    UnauthorizedOperation Unauthorized operation.
    InvalidParameter Incorrect parameter.
    ResourceUnavailable Resource is unavailable.
    AuthFailure.MFAFailure MFA failed.
    AuthFailure.UnauthorizedOperation The request is not authorized. For more information, see the CAM documentation.
    AuthFailure.InvalidSecretId Invalid key (not a TencentCloud API key type).
    AuthFailure.TokenFailure Token error.
    DryRunOperation DryRun Operation. It means that the request would have succeeded, but the DryRun parameter was used.
    FailedOperation Operation failed.
    UnknownParameter Unknown parameter.
    UnsupportedProtocol HTTP(S) request protocol error; only GET and POST requests are supported.
    InvalidParameterValue Invalid parameter value.
    InvalidAction The API does not exist.
    MissingParameter A parameter is missing.
    ResourceInsufficient Insufficient resource.

    Service Error Codes

    Error Code Description
    FailedOperation.ApiGateway Failed to create the API gateway trigger.
    FailedOperation.Apigw Failed to create the 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.CreateAlias Failed to create the alias.
    FailedOperation.CreateFunction Operation failed.
    FailedOperation.CreateNamespace Failed to create the namespace.
    FailedOperation.CreateTrigger This operation is not supported in the current function state.
    FailedOperation.DebugModeStatus This operation cannot be performed in the current debugging status.
    FailedOperation.DebugModeUpdateTimeOutFail Execution timeout period cannot be updated in debug mode.
    FailedOperation.DeleteAlias Failed to delete the alias.
    FailedOperation.DeleteFunction This operation cannot be performed in the current function status. Please try again when the function is in normal status.
    FailedOperation.DeleteLayerVersion Failed to delete the layer version.
    FailedOperation.DeleteNamespace The default namespace cannot be deleted.
    FailedOperation.FunctionNameStatusError You cannot update code in the current function state. Please try again when the state is normal.
    FailedOperation.FunctionStatusError Operation failed. The function is deploying.
    FailedOperation.FunctionVersionStatusNotActive This operation cannot be performed in the current function version status. Please try again when the version is in normal status.
    FailedOperation.GetAlias Failed to get the alias information.
    FailedOperation.GetFunctionAddress Failed to get the function code address.
    FailedOperation.InsufficientBalance The current account or namespace is in arrears. Please try again when it becomes available.
    FailedOperation.InvokeFunction Failed to invoke the function.
    FailedOperation.Namespace The namespace already exists. Please do not create it again.
    FailedOperation.OperationConflict Operation conflict.
    FailedOperation.ProvisionedInProgress The function version already has a provisioned concurrency setting task in progress. Please try again later.
    FailedOperation.PublishLayerVersion Failed to publish the layer version.
    FailedOperation.PublishVersion You cannot publish a version in the current function state. Please try again when the state is normal.
    FailedOperation.ReservedInProgress The function already has a reserved concurrency setting task in progress. Please try again later.
    FailedOperation.TotalConcurrencyMemoryInProgress The user already has a concurrency quota setting task in progress. Please try again later.
    FailedOperation.UpdateAlias Failed to update the alias.
    FailedOperation.UpdateFunctionCode You cannot update code in the current function state. Please try again when the state is normal.
    FailedOperation.UpdateFunctionConfiguration The UpdateFunctionConfiguration operation failed.
    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 error
    InternalError.System Internal system error.
    InvalidParameter.FunctionName The value of FunctionName does not conform to the specification. Please fix it and try again. For more information, please visit
    InvalidParameter.Payload Invalid request parameter.
    InvalidParameter.RoutingConfig Incorrect RoutingConfig parameter.
    InvalidParameterValue.Action The value of Action does not conform to the specification. Please fix it and try again. For more information, please visit
    InvalidParameterValue.AdditionalVersionWeights Incorrect AdditionalVersionWeights parameter.
    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.CompatibleRuntimes Incorrect CompatibleRuntimes parameter.
    InvalidParameterValue.Content Incorrect Content parameter.
    InvalidParameterValue.Cos Cos error.
    InvalidParameterValue.CosBucketName Invalid CosBucketName.
    InvalidParameterValue.CosBucketRegion The value of CosBucketRegion is invalid. Please modify and try again. See:
    InvalidParameterValue.CosObjectName Invalid CosObjectName.
    InvalidParameterValue.CustomArgument CustomArgument exceeds the length limit.
    InvalidParameterValue.DateTime DateTime error.
    InvalidParameterValue.DeadLetterConfig The value of DeadLetterConfig is invalid. Please modify and try again. See
    InvalidParameterValue.DefaultNamespace Failed to create the default namespace.
    InvalidParameterValue.Description Description error.
    InvalidParameterValue.EipConfig EipConfig parameter error.
    InvalidParameterValue.Enable The value of Enable does not conform to the specification. Please fix it and try again. For more information, please visit
    InvalidParameterValue.Environment Environment error.
    InvalidParameterValue.EnvironmentExceededLimit The size of the environment variable exceeds the limit. Please keep it within 4 KB.
    InvalidParameterValue.EnvironmentSystemProtect You cannot modify the function's system environment variables or runtime environment variables.
    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.LayerName Incorrect LayerName parameter.
    InvalidParameterValue.Layers Layers parameter error.
    InvalidParameterValue.Limit Limit error.
    InvalidParameterValue.LimitExceeded The parameter exceeds the length limit.
    InvalidParameterValue.Memory The value of Memory does not conform to the specification. Please fix it and try again. For more information, please visit
    InvalidParameterValue.MemorySize MemorySize error.
    InvalidParameterValue.Name Incorrect Name parameter.
    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 The value of OrderBy does not conform to the specification. Please fix it and try again. For more information, please visit
    InvalidParameterValue.Orderby Orderby error.
    InvalidParameterValue.Param The input parameter is not in the standard JSON format.
    InvalidParameterValue.PublicNetConfig The PublicNetConfig parameter is invalid.
    InvalidParameterValue.Qualifier Unsupported function version.
    InvalidParameterValue.RoutingConfig The value of RoutingConfig does not conform to the specification. Please fix it and try again. For more information, please visit
    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.VpcNotSetWhenOpenCfs A VPC needs to be activated together with CFS configuration.
    InvalidParameterValue.ZipFile A non-standard zip file was detected. Please recompress and try again.
    LimitExceeded.Alias The number of aliases exceeds the upper limit.
    LimitExceeded.Cdn The Cdn usage exceeds the upper limit.
    LimitExceeded.Eip The EIP resource exceeded the limit.
    LimitExceeded.Function If the number of functions exceeds the upper limit, you can apply for an increase by submitting a ticket.
    LimitExceeded.FunctionOnTopic The number of functions under the same topic exceeds the upper limit.
    LimitExceeded.FunctionProvisionedConcurrencyMemory The value of FunctionProvisionedConcurrencyMemory has reached the upper limit. You can submit a ticket to increase it at
    LimitExceeded.FunctionReservedConcurrencyMemory The function's reserved concurrency memory has exceeded the limit.
    LimitExceeded.FunctionTotalProvisionedConcurrencyMemory The value of FunctionTotalProvisionedConcurrencyMemory has reached the upper limit. You can submit a ticket to increase it at
    LimitExceeded.FunctionTotalProvisionedConcurrencyNum The total amount of provisioned concurrency of the function has exceeded the limit.
    LimitExceeded.InitTimeout The value of InitTimeout has reached the upper limit. You can submit a ticket to increase it at
    LimitExceeded.LayerVersions The number of layer versions exceeds the upper limit.
    LimitExceeded.Memory The memory exceeds the upper limit.
    LimitExceeded.Namespace If the number of namespaces exceeds the upper limit, you can apply for an increase by submitting a ticket.
    LimitExceeded.Offset Offset exceeds the upper limit.
    LimitExceeded.Timeout Timeout exceeds the upper limit.
    LimitExceeded.TotalConcurrencyMemory The account concurrency memory has exceeded the limit.
    LimitExceeded.Trigger If the number of triggers exceeds the upper limit, you can apply for an increase by submitting a ticket.
    MissingParameter.Code Failed to import Code.
    MissingParameter.Runtime Runtime is missing.
    ResourceInUse.Alias The alias is in use.
    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.LayerVersion The layer version is in use.
    ResourceInUse.Namespace This Namespace already exists.
    ResourceInUse.Trigger This TriggerName already exists.
    ResourceInUse.TriggerName This TriggerName already exists.
    ResourceInsufficient.COS Insufficient COS resources.
    ResourceNotFound.Alias The alias does not exist.
    ResourceNotFound.Cdn Cdn does not exist.
    ResourceNotFound.CfsVpcNotMatch VPCs of the CFS instance and the SCF function are different.
    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.GetCfsNotMatch An error occurred while getting the CFS information.
    ResourceNotFound.Layer The layer does not exist.
    ResourceNotFound.LayerVersion The layer version does not exist.
    ResourceNotFound.Namespace Namespace does not exist.
    ResourceNotFound.Qualifier The version does not exist.
    ResourceNotFound.Role The role does not exist.
    ResourceNotFound.Timer Timer does not exist.
    ResourceNotFound.TotalConcurrencyMemory The concurrency memory quota resource was not found.
    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.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.NotMC This API is not called from the console.
    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 the APPID of the request account.
    UnauthorizedOperation.UpdateFunctionCode Operation failed.
    UnsupportedOperation.AliasBind The resource is bound to an alias, and the current operation cannot be performed. Please unbind the alias and try again.
    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.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback