Aidge APIs use a unified system that combines service-layer error codes with standard Alibaba Cloud platform (gateway layer) error codes. In an error response, the Code field contains the error code, and the Message field provides a description. At runtime, the system replaces the %s placeholder with context-specific information.
Service-level error codes
The Aidge service layer returns the following error codes, which are shared across all SKUs.
|
Error code |
Error message |
Cause |
Solution |
|
Input parameter errors |
|||
|
|
|
A request parameter is missing, incorrectly formatted, has the wrong data type, or is out of the valid range. The |
Check the API documentation to verify the parameter name, type, required status, and valid value range. |
|
|
|
The input text or image triggered the content moderation system (for example, due to sensitive words or prohibited images). |
Modify the input content and retry the request. If you believe this is a false positive, contact technical support. |
|
Authentication and account errors |
|||
|
|
|
You called the API using an unsupported account type. |
Use an Alibaba Cloud main account or a RAM sub-account for authentication. For more information, see Authentication. |
|
|
|
The Alibaba Cloud account has an abnormal status, such as incomplete real-name verification or being suspended. |
Log in to the Alibaba Cloud console to check your account status. |
|
Service and quota errors |
|||
|
|
|
You requested an Aidge sub-service that has not been activated, for example, calling the image translation SKU without activating it first. |
Go to the Aidge console to activate the corresponding service. |
|
|
|
The account or service has an invalid status, such as suspension or an overdue payment. |
Check your Alibaba Cloud account balance and settle any overdue payment, or contact technical support. |
|
|
|
You have exhausted the trial quota and have not purchased a paid package. |
Purchase a package in the Aidge console, or disable the 'stop-when-exhausted' option on the quota management page. |
|
|
|
The request used a priority parameter that is not supported. |
Check that the priority parameter in your request is within the allowed range. |
|
Output and downstream errors |
|||
|
|
|
The content generated by the model triggered the content moderation system and therefore was not returned. |
Adjust the semantics of your input and retry the request, or contact technical support. |
|
|
|
A downstream dependency, such as a model service or image download service, is temporarily unavailable. |
Retry the request after a short delay. If the error persists, contact technical support. |
|
Internal system errors |
|||
|
|
|
Failed to parse usage statistics. This does not affect the request result. |
Retry the request. If the error persists, log the |
|
|
|
Failed to push billing data. |
Retry the request. If the error persists, log the |
|
|
|
This is a catch-all for system errors that do not match a more specific error type. |
Retry the request after a short delay. If the error persists, log the |
Platform error codes
Alibaba Cloud API Gateway returns these error codes, which apply to all Aidge APIs. The response body still contains the standard Code, Message, and RequestId fields, but the HTTP status code will be a 4xx or 5xx error.
|
Error code |
HTTP status |
Error message |
Solution |
|
|
503 |
The request failed because of a temporary server error. |
Retry the request 1 to 3 times using linear backoff. If the error persists, log the |
|
|
429 |
The request was denied due to throttling. |
Implement an exponential backoff strategy (for example, with initial delays of 1s, 2s, 4s, and 8s) and reduce your concurrent request rate. To request a quota increase, contact technical support. |
|
|
429 |
The request was denied due to API-level throttling. |
API-level throttling. Check the QPS quota for the specific API. For more information, see Rate limit. |
|
|
429 |
The request was denied due to user-level throttling. |
This is a user-level rate limit. Reduce your concurrent request rate and retry. To request a quota increase, submit a ticket. |
|
|
403 |
You are not authorized to perform this action. |
Ensure the RAM sub-account has the required access policy attached, such as |
|
|
500 |
The request failed due to an unknown internal error. |
Log the |
|
|
400 |
The request signature does not conform to Alibaba Cloud standards. |
Verify your HMAC-SHA256 signature calculation process. For more information, see Authentication. |
|
|
500 |
The request failed due to an unknown internal error. |
Log the |
|
|
400 |
The specified parameter "%s" is not valid. |
Check if the parameter value is within the platform's allowed range. The |
|
|
400 |
%s is mandatory for this action. |
Add the missing required parameter and retry the request. |
HTTP status codes
The HTTP status code provides a high-level indication of the request's outcome and serves as a secondary signal.
|
Status code |
Description |
Solution |
|
200 |
The request was successfully processed. The |
-- |
|
400 |
Your request was malformed. This often corresponds to service-level codes like |
Handle the error based on the |
|
401 |
Authentication failed. The AccessKey (AK/SK) signature is incorrect or the token has expired. |
Check your AccessKey and signature calculation process. For more information, see Authentication. |
|
403 |
Permission denied. Corresponds to the |
Check the permissions of the RAM sub-account. |
|
429 |
The request rate has exceeded the QPS limit. Corresponds to the |
Retry the request using exponential backoff. For more information, see Rate limit. |
|
500 |
An internal server error occurred. This often corresponds to service-level codes like |
Handle the error based on the |
|
503 |
The service is temporarily unavailable. Corresponds to the |
Retry the request using linear backoff. |
Error handling
-
Prioritize the
Codefield: Always check theCodefield in the response body to determine your handling strategy. Use the HTTP status code as a secondary signal. -
Retryable errors: For server-side errors like
InternalError,UnknownError,DownstreamUnavailable,ServiceUnavailable,UsageParseFail, andBillingPushFail, we recommend retrying the request 2 to 3 times with exponential backoff. -
Throttling errors: For all
Throttlingerrors, you must implement an exponential backoff and client-side rate limiting. We recommend starting with a 1-second delay and retrying up to 5 times. If you consistently encounter this error, submit a ticket to request a quota increase. -
Non-retryable errors: Errors like
InvalidParameter,MissingParameter,InputContentBlocked,FreeQuotaExhausted,ServiceNotOpened,NoPermission, andIncompleteSignatureare client-side errors. Retrying these requests will not succeed. You must fix the underlying issue in your request before resubmitting it. -
Log the
RequestId: TheRequestIdfield in the response body is essential for troubleshooting. Always include this ID in your logs. -
The
%splaceholder: The%splaceholder in an error message represents specific context, such as a field name or service name, that is inserted at runtime.
Next steps
-
Rate limit -- Learn about the QPS quotas for each API.
-
API Overview -- Understand the overall API structure and synchronous/asynchronous conventions.
-
Authentication -- Learn about Alibaba Cloud AccessKey (AK/SK) authentication and the signature algorithm.