When an error occurs in an API request, Function Compute returns an error message. This topic describes common error codes in Function Compute. You can find solutions based on the error codes from the following table.

Error information

The error information that corresponds to an error code contains an HTTP status code and error details in the response body. The error details in the response body are in the following format:

{
  "errorCode" : <ErrorCode>,
  "errorMessage" : <ErrorMessage>
}        

Error codes

HTTP status code Error code Error message Description Solution
400 InvalidArgument %s The error message returned because the specified parameter is invalid. Check whether all request parameters are valid.
400 MissingRequiredHeader required HTTP header %s was not specified The error message returned because the required request header is missing. Add the request header based on the error message specified by the errorMessage parameter.
400 PathNotSupported '%s' against '%s' is not supported The error message returned because the specified requested API path is invalid. Check whether the requested API path is valid.
400 EntityTooLarge payload size exceeds maximum allowed size (%s bytes) The error message returned because the size of the request parameters exceeds the maximum allowed size. Adjust the size of the request parameters based on the error message specified by the errorMessage parameter.
403 AccessDenied %s The error message returned because the account does not have the permissions to perform the operation. Grant the permissions on Function Compute to the account.
403 SignatureNotMatch The request signature we calculated does not match the signature you provided. Check your access key and signing method The error message returned because the specified digital signature of the request does not match with that calculated in Function Compute. Calculate the signature based on the signature rules.
403 InvalidAccessKeyID invalid access key ID '%s' The error message returned because the specified AccessKey ID is invalid. Specify a valid AccessKey ID.
404 ServiceNotFound service '%s' does not exist The error message returned because the specified service does not exist. Create a service. For more information, see Manage microservices.
404 AliasNotFound alias '%s' of service '%s' does not exist The error message returned because the specified alias does not exist. Create an alias. For more information, see Manage aliases.
404 DomainNameNotFound domain name '%s' does not exist The error message returned because the specified domain name does not exist. Bind a domain name. For more information, see Configure a custom domain name.
404 VersionNotFound version '%d' of service '%s' does not exist The error message returned because the specified version does not exist. Create a version. For more information, see Manage versions.
409 ConcurrentUpdateError N/A The error message returned because resources such as services, functions, or triggers are being concurrently updated. Sequentially update resources to prevent data inconsistency.
429 ResourceExhausted %s The error message returned because the concurrency limit has been exceeded. Contact Function Compute engineers to raise your concurrency limit.
500 InternalServerError an internal error has occurred. Please retry The error message returned because a system error has occurred. Contact Function Compute engineers.
503 ResourceThrottled %s The error message returned because the maximum number of instances allowed has been reached. Contact Function Compute engineers to evaluate your instance quota.

For a list of error codes, visit the API Error Center.