Error handling
This topic describes the structure of error responses in Intelligent Media Management (IMM), lists common error codes, and provides guidance on resolving them.
Error response format
When a request fails, IMM returns a JSON error response. The following example shows the structure:
{
"RequestId": "D18E94DF-1D00-0B75-811E-****",
"HostId": "imm.cn-hangzhou.aliyuncs.com",
"Code": "InvalidArgument",
"Message": "The parameter ProjectName is required but not provided.",
"Recommend": "https://next.api.aliyun.com/troubleshoot?q=InvalidArgument&product=imm"
}
The HTTP status code varies based on the error type. The following table describes each response field:
|
Field |
Description |
|
RequestId |
A unique identifier for the request. Provide this ID when you contact technical support in DingTalk group 31690030817. |
|
HostId |
The endpoint of the region where the request was made. Provide this value when you contact technical support in DingTalk group 31690030817. |
|
Code |
The error code, which identifies the type of error. |
|
Message |
The error message, which describes the cause and how to resolve it. |
|
Recommend |
A link to additional troubleshooting resources. |
Common error codes
Errors are grouped by HTTP status code. Each group requires a different handling strategy:
4xx errors: The request has a problem you must fix before retrying. Check the error code and message to identify what to correct. These errors are not retryable unless the underlying issue is resolved.
5xx errors: A server-side failure. These are typically transient—wait briefly, then retry the request.
The following notes apply to the error code table:
The HTTP status code column lists HTTP response status codes.
The Error code column lists error codes, where
{ParameterName}is the parameter name and{ResourceType}is the resource type.The Error message column lists error messages that describe the error in detail. Actual returned error messages may differ slightly from those listed.
|
HTTP status code |
Error code |
Error message |
Description |
Retryable |
|
400 |
InvalidArgument |
%s |
The parameter value is invalid. Check the relevant documentation and correct the parameter. |
No |
|
400 |
Missing{ParameterName} |
{ParameterName} is mandatory for this action. |
A required parameter is missing. Add the missing parameter to the request. |
No |
|
400 |
LimitExceededError |
Message: input quota exceed the max value |
The parameter value exceeds the upper limit. Reduce the value to within the allowed range. |
No |
|
400 |
LimitExceededError |
Message: resource count exceeds the limit |
The number of resources exceeds the limit. Delete unused resources or request a quota increase. |
No |
|
400 |
Invalid{ParameterName} |
Specified parameter {ParameterName} is not valid. |
The parameter value is invalid. |
No |
|
400 |
ResourceAlreadyExists |
The specified resource {ResourceType} already exists. |
The resource already exists. Use a different name or delete the existing resource first. |
No |
|
400 |
ResourceNotFound |
The specified resource {ResourceType} is not found. |
The resource does not exist. Verify the resource name and region. |
No |
|
400 |
InvalidJSON Array parsing error, {ParameterName} |
Specified parameter JSON Array parsing error, {ParameterName} is not valid. |
JSON parsing failed. The value is incorrectly formatted. Validate the JSON before retrying. |
No |
|
400 |
MalformedPOSTRequest |
Invalid json string. |
The request body contains invalid JSON. Validate the request format. |
No |
|
400 |
Throttling.Api |
The request was denied due to flow control. |
The QPS limit for API calls is reached. Back off and retry after a short wait. |
Yes |
|
400 |
Throttling.User |
Request was denied due to user flow control. |
User-level request throttling is triggered. Back off and retry after a short wait. |
Yes |
|
400 |
StateConflict |
User operation is not valid. Please try again later. |
The operation is not valid at this time. Retry after a short wait. |
Yes |
|
400 |
ContentMD5NotMatched |
Specified content md5 is not matched with your request body. |
The MD5 verification failed. Recalculate the MD5 and retry. |
No |
|
400 |
EntityTooLarge |
The payload size exceeds maximum allowed size (%s bytes). |
The payload size exceeds the maximum limit. Reduce the payload size. |
No |
|
400 |
IllegalTimestamp |
The input parameter "Timestamp" that is mandatory for processing this request is not supplied. |
The Timestamp parameter value is invalid or missing. |
No |
|
400 |
IncompleteSignature |
The request signature does not conform to Aliyun standards. |
The signature does not match. Regenerate the signature according to the signing specification. |
No |
|
400 |
InvalidAction |
Specified action is not valid. |
The API operation is not valid. Check the operation name. |
No |
|
400 |
InvalidProtocolNeedSsl |
Your request is denied as lack of ssl protect. |
Only HTTPS is supported. Switch from HTTP to HTTPS. |
No |
|
400 |
InvalidSecurityTokenExpired |
Specified SecurityToken is expired. |
The security token has expired. Request a new token and retry. |
Yes |
|
400 |
InvalidSecurityTokenMalformed |
Specified SecurityToken is malformed. |
The security token is malformed. Request a new token. |
No |
|
400 |
InvalidSecurityTokenMismatchWithAccessKey |
Specified SecurityToken mismatch with the AccessKey. |
The security token does not match the AccessKey pair. Verify that you are using the correct token and AccessKey together. |
No |
|
400 |
InvalidSignatureMethod |
Specified parameter signature method is not valid. |
The signature method is not supported. Use a supported signature method. |
No |
|
400 |
InvalidTimeStampExpired |
Specified time stamp or date value is expired. |
The interval between sending and receiving the request exceeds 15 minutes. Sync the client clock and retry. |
No |
|
400 |
InvalidTimeStampFormat |
Specified time stamp or date value is not well formatted. |
The timestamp format is invalid. Use the correct format. |
No |
|
400 |
MissingRequiredHeader |
The required HTTP header %s was not specified. |
A required HTTP header is missing. Add the header and retry. |
No |
|
400 |
SignatureNonceUsed |
Specified signature nonce was used already. |
The signature nonce has already been used. Generate a new nonce. |
No |
|
400 |
SignatureNotMatch |
Specified signature is not matched with our calculation. |
The signature does not match the AccessKey ID or AccessKey secret. Verify your credentials. |
No |
|
400 |
UnsupportedAction |
The requested action '%s' is not supported. Please check. |
The operation is not supported. |
No |
|
400 |
UnsupportedAPIVersion |
The requested API version '%s' is not supported yet. Please check. |
The API version is not supported. Upgrade to a supported version. |
No |
|
400 |
OSSAccessError |
OSS access error. Please check your permission. |
Failed to access Object Storage Service (OSS). Verify your OSS permissions and bucket policy. |
No |
|
400 |
STSAccessError |
STS access error. Please check your permission. |
Failed to access Security Token Service (STS). Verify your STS permissions. |
No |
|
400 |
Invalid{ResourceType}.Unsupported |
The resource {ResourceType} is not supported. Please check. |
The resource type is not supported. |
No |
|
400 |
Invalid{ResourceType}.DownloadFailed |
The resource {ResourceType} can not be downloaded. Please check. |
The resource type does not support downloads. |
No |
|
403 |
AccessDenied |
%s |
You do not have the required access permissions. Grant the required permissions and retry. |
No |
|
403 |
Forbidden.AccountNotFound |
The specified account does not exist. Please check your account. |
The specified account does not exist. Verify that you are using the correct account. |
No |
|
403 |
Forbidden.AccountInDebt |
The specified account is in debt. Please check your permission. |
The account has overdue payments. Settle the outstanding balance. |
No |
|
403 |
Forbidden.ServiceRole |
Cannot access specified service role. Please check your permission. |
You cannot access the specified service role. Grant the required role permissions. |
No |
|
403 |
Forbidden.RiskControl |
This operation is forbidden by Alibaba Cloud RiskControl system. Please check. |
The Alibaba Cloud risk control system blocked the operation. Contact support if the issue persists. |
No |
|
403 |
Forbidden |
User not authorized to operate on the specified APIs. Please check your permission. |
You are not authorized to call this API operation. Grant the required permissions. |
No |
|
403 |
ForbiddenAccessDenied |
Request was denied due to isolation policy. |
The request was denied by the isolation policy. |
No |
|
403 |
ForbiddenAccessKeyDisabled |
The Access Key is disabled. |
The AccessKey ID is disabled. Re-enable the AccessKey or use a different one. |
No |
|
403 |
ForbiddenProductDisabled |
The target product is not enabled, try to enable it using web console or OpenAPI first. |
The service is not activated. Activate IMM in the Alibaba Cloud Management Console or using the API. |
No |
|
403 |
InvalidAccessKeyID |
Invalid access key ID '%s'. |
The specified AccessKey ID is invalid. Verify the AccessKey ID. |
No |
|
403 |
InvalidAccessKeyIDInactive |
Specified access key is disabled. |
The AccessKey pair is disabled. Re-enable the AccessKey. |
No |
|
403 |
Throttling |
The request project is blocked due to throttling control. Please wait a few minutes before trying again. |
The request is throttled. Wait a few minutes, then retry. |
Yes |
|
403 |
UnsupportedSignatureMethod |
This signature method is not supported. |
The signature method is not supported. Use a supported method. |
No |
|
403 |
UnsupportedSignatureType |
This signature type is not supported. |
The signature type is not supported. Use a supported type. |
No |
|
404 |
InvalidAccessKeyIDNotFound |
Specified access key is not found. |
The AccessKey pair does not exist. Verify the AccessKey ID. |
No |
|
405 |
HTTPMethodNotAllowed |
The request http method is not supported for this resource. Please refer to document. |
The HTTP method is not supported for this resource. Check the API documentation for the correct method. |
No |
|
408 |
Timeout |
Request timed out. Please try again later. |
The request timed out. Retry after a short wait. |
Yes |
|
409 |
StatusConflict |
%s |
A status conflict exists. Retry after the conflicting operation completes. |
Yes |
|
412 |
PreconditionFailed |
The resource to be modified has been changed. |
Resource update failed. The resource may have been modified concurrently. Retrieve the latest version and retry. |
Yes |
|
415 |
UnsupportedMediaType |
The content type must be 'application/x-www-form-urlencoded'. |
The content type is invalid. Set Content-Type to |
No |
|
500 |
InternalError |
The request has been failed due to some unknown error. Please try again later. |
An unknown server error occurred. Retry after a short wait. If the error persists, contact technical support with the RequestId. |
Yes |
|
503 |
ServiceUnavailable |
The request has failed due to a temporary failure of the server. Please try again later. |
A temporary server failure occurred. Retry after a short wait. |
Yes |
|
503 |
ServiceUnavailable.RegionMaintaining |
System maintenance is in progress on the selected region. Please wait a few minutes before trying again. |
The region is under maintenance. Wait a few minutes, then retry. |
Yes |
Common errors and solutions
|
Error |
Cause |
Solution |
|
QuotaExhausted.CU |
Requests exceed the CU (compute unit) quota for the project. The default limit is 10 CU. |
Reduce the request frequency to stay within the quota. If sustained throughput above the limit is required, request a quota increase. |
|
SDK.InvalidRegionId |
The region ID is invalid or not recognized by the SDK. |
Verify that a valid region is specified and that you are using the latest version of the SDK. For available regions, see Limits. |
|
Throttling.Api |
Requests exceed the QPS limit for the API operation. |
Check whether a loop in your code sends requests too rapidly. Add a sleep interval to reduce the request rate. Use exponential backoff for retries. Requests resume automatically after the throttling period ends. |
|
Throttling.User |
Requests exceed the user-level traffic throttling limit. |
Check whether a loop in your code sends requests too rapidly. Add a sleep interval to reduce the request rate. Use exponential backoff for retries. Requests resume automatically after the throttling period ends. |