Updated on 2022-02-24 GMT+08:00

Error Codes

If an error occurs during API calling, no result is returned. You can locate the cause of the error according to the error code of each API.

If an error occurs during API calling, the returned message body contains the specific error code and error information. If you fail to locate the cause of an error, contact HUAWEI CLOUD service support and provide the error code so that we can help you solve the problem as soon as possible.

If an error code starting with APIGW is returned after you call an API, rectify the fault by referring to the instructions provided in API Gateway Error Codes.

Table 1 Error codes

Status Code

Error Code

Error Message

Description

Solution

400

IS.0001

The request parameter is missing or empty.

The request parameter is missing or empty.

Check whether the request parameters are valid.

400

IS.0002

The type of the request parameter is not supported.

The type of the request parameter is not supported.

Check whether the request parameters are valid.

400

IS.0003

The request parameter cannot be empty.

The request parameter cannot be empty.

Check whether the request parameters are valid.

400

IS.0004

Exception verifying token.

Exception verifying token.

Check whether the token is up to date.

400

IS.0005

The header is missing or empty.

The header is missing or empty.

Check whether the header is correct.

400

IS.0006

The request body is too big.

The request body is too big.

Shrink the request body to the size allow.

400

IS.0007

Invalid instance name.

Invalid instance name.

Check whether the instance name is correct.

400

IS.0008

The JSON format of the input data is incorrect.

The JSON format of the input data is incorrect.

Check whether the JSON format is valid.

400

IS.0009

The request failed due to an internal error.

The request failed due to an internal error.

Locate the fault based on the error information returned by the service.

400

IS.0010

The request method is not allowed.

The request method is not allowed.

Use allowed request method instead.

400

IS.0011

The user is not allowed to use the request method.

The user is not allowed to use the request method.

Grant permission to current user, or send the request as another user.

400

IS.0012

Operation timed out.

Operation timed out.

Check whether the service is running properly.

400

IS.0013

The token is empty.

The token is empty.

Use a valid token.

400

IS.0014

Instance status is abnormal.

Instance status is abnormal.

Check whether the instance status is normal.

400

IS.0015

The model file does not exist.

The model file does not exist.

Check whether the model file exists.

400

IS.0016

The path is invalid.

The path is invalid.

Check whether the path is valid.

400

IS.0017

The request is not authorized.

The request is not authorized.

Apply for authorization.

400

IS.0018

The OBT is not applied for.

The OBT is not applied for.

Apply for OBT.

400

IS.0019

The user service ID does not match the project ID.

The user service ID does not match the project ID.

Enter the matching ID.

400

IS.0020

The value cannot be obtained.

The value cannot be obtained.

Check whether the user is blacklisted. If yes, remove the user from the blacklist.

400

IS.0021

The token has expired.

The token has expired.

Obtain the latest token.

400

IS.0022

The current user has restricted rights.

The current user has restricted rights.

Check the account balance or contact the administrator.

400

IS.1001

The service does not exist.

The service does not exist.

Check whether the service name is correct.

400

IS.1002

No tag value.

No tag value.

Check whether the input image contains tag information.

400

IS.1003

Too many tags.

Too many tags.

Use appropriate number of tags.

400

IS.1004

The tag does not match.

The tag does not match.

Enter a correct tag key.

400

IS.1005

Failed to add the image.

Failed to add the image.

Check whether the request parameters are valid.

400

IS.1006

Failed to delete the image.

Failed to delete the image.

Check whether the request parameters are valid.

400

IS.1007

Failed to update the image.

Failed to update the image.

Check whether the request parameters are valid.

400

IS.1008

Failed to search for the image.

Failed to search for the image.

Check whether the request parameters are valid.

400

IS.1009

Failed to query the image.

Failed to query the image.

Check whether the request parameters are valid.

400

IS.1010

The value of limit is incorrect.

The value of limit is incorrect.

The value of limit must be a positive integer.

400

IS.1011

The value of offset is incorrect.

The value of offset is incorrect.

The value of offset must be a positive integer or 0.

400

IS.1015

Too many images in the instance.

Too many images in the instance.

Contact HUAWEI CLOUD customer service to scale up the instance.

400

IS.1016

Failed to detect the image.

Failed to detect the image.

Check whether the industry type is supported.

400

IS.2000

Failed to download the image.

Failed to download the image.

Check whether the image path exists.

400

IS.2001

The image format is not supported.

The image format is not supported.

Change the image format to JPEG, JPG, PNG, or BMP.

400

IS.2002

The image file has been damaged.

The image file has been damaged.

Check whether the image file is complete.

400

IS.2003

The OBS object cannot be obtained.

The OBS object cannot be obtained.

Check whether OBS is accessible. If it is, check whether the object exists.

400

IS.2004

The OBS bucket does not exist.

The OBS bucket does not exist.

Check whether the OBS bucket exists.

400

IS.2005

Failed to save the temporary file.

Failed to save the temporary file.

Check whether the image search service is available.

400

IS.2006

The image is not indexed.

The image is not indexed.

Check whether the image search service is available.

400

IS.2007

Base64 decoding of the input data is incorrect.

Base64 decoding of the input data is incorrect.

Check whether the entered data is correct.

400

IS.2008

The request parameters must contain path information.

The request parameters must contain path information.

Add path information to the request parameter.

400

IS.2009

The request parameters must contain tag information.

The request parameters must contain tag information.

Add tag information to the request parameter.

400

IS.2010

The request parameter does not exist.

The request parameter does not exist.

Check whether the request parameter is complete.

400

IS.2011

OBS is not authorized to obtain images.

OBS is not authorized to obtain images.

Check whether OBS is authorized.

400

IS.2012

The image path cannot be empty.

The image path cannot be empty.

Include the path field in the request parameter.

400

IS.2013

The path and file in the request parameter cannot be empty at the same time.

The path and file in the request parameter cannot be empty at the same time.

The path and file in the request parameter cannot be empty at the same time.

400

IS.2014

Failed to create the cache file path.

Failed to create the cache file path.

Resend the request.

400

IS.2015

The request parameter must contain path or file.

The request parameter must contain path or file.

The request parameter must contain path or file.

400

IS.2016

Failed to create the OBS client.

Failed to create the OBS client.

Check whether the OBS bucket is authorized.

400

IS.2019

The instance does not exist.

The instance does not exist.

Check whether the instance exists.

400

IS.2100

Failed to add the image.

Failed to add the image.

Check whether the image search service is available.

400

IS.2101

Failed to delete the image.

Failed to delete the image.

Check whether the image search service is available.

400

IS.2102

Failed to search for the image.

Failed to search for the image.

Check whether the image search service is available.

400

IS.2103

Failed to check the image.

Failed to check the image.

Check whether the image search service is available.

400

IS.2104

Failed to update the image information.

Failed to update the image information.

Check whether the update request is correct.

400

IS.2105

The service is not running properly.

The service is not running properly.

Restart the service or contact the administrator.

400

IS.2106

The image is too big.

The image is too big.

The image size cannot exceed 2048*2048.

400

IS.2107

The image is too small.

The image is too small.

The image cannot be smaller than 100*100.

400

IS.2108

An error occurred while the service is running.

An error occurred while the service is running.

Check whether a correct method is used to call the API.

400

IS.2109

Failed to connect to the gallery.

Failed to connect to the gallery.

Check whether the instance status is normal.

400

IS.2111

Failed to perform image detection.

Failed to perform image detection.

Check whether the industry parameters are supported.

400

IS.2112

The request parameter must contain image.

The request parameter must contain image.

Check whether the image parameter exists in the request parameters.

400

IS.3000

The service name already exists.

The service name already exists.

The service already exists.

400

IS.3001

Failed to save the service information.

Failed to save the service information.

Check whether the image search service is available.

400

IS.3002

Failed to delete services from some nodes.

Failed to delete services from some nodes.

Check whether the image search service is available.

400

IS.3003

Failed to delete the instance from the node.

Failed to delete the instance from the node.

Check whether the image search service is available.

400

IS.3004

The model cannot be used.

The model cannot be used.

Check whether the model name and path are correct.

400

IS.3005

The service name does not exist.

The service name does not exist.

The service name is incorrect or the service is not created.

400

IS.3006

The model is in use.

The model is in use.

The model is in use and does not need to be added again.

400

IS.3007

The user does not exist.

The user does not exist.

Check whether the username is correct.

400

IS.3008

Failed to start the instance.

Failed to start the instance.

Check whether the image search service is available.

400

IS.3009

Decompressing failed.

Decompressing failed.

Check whether the image search service is available.

400

IS.3010

Failed to start the service.

Failed to start the service.

Check whether the image search service is available.

400

IS.3011

Failed to initialize the configuration file.

Failed to initialize the configuration file.

Check whether the image search service is available.

400

IS.3012

No management instance is found.

No management instance is found.

Check whether the image search service is available.

400

IS.3013

Failed to obtain the instance.

Failed to obtain the instance.

Check whether the image search service is available.

400

IS.3014

The model name does not exist.

The model name does not exist.

Check whether the model name is correct.

400

IS.3015

Failed to obtain the OBS bucket.

Failed to obtain the OBS bucket.

Check whether the OBS bucket name is correct.

400

IS.3016

Failed to authorize the OBS bucket.

Failed to authorize the OBS bucket.

Check whether OBS is running properly.

400

IS.3017

The OBS bucket is empty.

The OBS bucket is empty.

There is nothing in the OBS bucket.

400

IS.3018

Failed to obtain the OBS bucket list.

Failed to obtain the OBS bucket list.

Check whether the OBS operation is correct.

400

IS.3019

Failed to add the OBS bucket.

Failed to add the OBS bucket.

Check whether the OBS operation is correct.

400

IS.3020

Failed to obtain the bucket listening event.

Failed to obtain the bucket listening event.

Check whether the OBS operation is correct.

400

IS.3021

No instance is found.

No instance is found.

Check whether the instance exists.

400

IS.3022

Failed to change the instance name.

Failed to change the instance name.

Check whether the request is valid.

400

IS.3023

The instance tag does not exist.

The instance tag does not exist.

Check whether the instance tag is created.

400

IS.3024

Too many instance tags.

Too many instance tags.

The number of instance tags cannot exceed 10.

400

IS.3025

The instance tag cannot be deleted.

The instance tag cannot be deleted.

Currently, deleting instance tags is not supported.

400

IS.3026

Failed to add the instance tag.

Failed to add the instance tag.

Check whether the adding request is correct.

400

IS.3027

Failed to upload the model to OBS.

Failed to upload the model to OBS.

Check whether OBS is running properly.

400

IS.3028

Failed to create the instance.

Failed to create the instance.

Check whether the creation request is correct.

400

IS.3029

Failed to obtain the instance model.

Failed to obtain the instance model.

Check whether the instance model exists.

400

IS.3030

The instance cannot be deleted because it is being created.

The instance cannot be deleted because it is being created.

It is impossible to delete an instance that is being created.

400

IS.3031

Failed to obtain the statistics.

Failed to obtain the statistics.

Check whether the request is valid and whether the service is available.

400

IS.3032

The instance is being deleted.

The instance is being deleted.

The instance is already being deleted.

400

IS.3033

Failed to obtain the batch import task.

Failed to obtain the batch import task.

Check whether the batch import data exists.

400

IS.3034

The blacklist or whitelist is invalid.

The blacklist or whitelist is invalid.

Check the blacklist and whitelist.

400

IS.3035

The instance scale does not exist.

The instance scale does not exist.

Check whether the instance scale is correct.

400

IS.3036

The user instance description is too long.

The user instance description is too long.

The description can contain a maximum of 512 characters.

400

IS.3037

A bucket event exists in the instance.

A bucket event exists in the instance.

The instance cannot have multiple bucket events.

400

IS.3038

An offline import task is running on the instance. The instance cannot be deleted.

An offline import task is running on the instance. The instance cannot be deleted.

Wait until the offline import task is complete.

400

IS.3039

Failed to reset the instance scale.

Failed to reset the instance scale.

Check the service status and try again.

400

IS.3040

Failed to reset the instance to a smaller scale.

Failed to reset the instance to a smaller scale.

The instance can be reset to a larger scale only.

400

IS.3041

Failed to obtain the instance scale.

Failed to obtain the instance scale.

Check the service status and try again.

400

IS.3050

Failed to obtain the OBS bucket folder list.

Failed to obtain the OBS bucket folder list.

The OBS bucket does not have a folder list.

400

IS.3051

The bucket name in the path does not match the name of the selected OBS bucket.

The bucket name in the path does not match the name of the selected OBS bucket.

Check whether the bucket name in the path is the same as the selected bucket name.

400

IS.3052

The path does not contain the file directory or list in the bucket.

The path does not contain the file directory or list in the bucket.

Check whether the entered path is correct.

400

IS.3053

The file list or directory in the path does not exist.

The file list or directory in the path does not exist.

Check whether the entered path is correct.

400

IS.4000

Failed to download the system package.

Failed to download the system package.

Check whether the image search service is available.

400

IS.4001

The OBS bucket is empty.

The OBS bucket is empty.

The OBS bucket is empty.

400

IS.4002

The service cannot be initialized.

The service cannot be initialized.

Check whether the image search service is available.

400

IS.4003

Failed to obtain the search result.

Failed to obtain the search result.

Check whether the image search service is available.

400

IS.4004

The instance name does not exist.

The instance name does not exist.

Check whether the instance name exists.

400

IS.4005

Failed to create the offline import task.

Failed to create the offline import task.

Restart the offline import task.

400

IS.4006

The account is frozen.

The account is frozen.

Check whether the account is in arrears. If yes, it will unfreeze after recharge.

400

APIG.0101

The API does not exist or has not been published.

The API does not exist or has not been published.

Check whether the entered API information is correct and whether the service is available in the corresponding region. Check whether the URL of the API is spelled correctly and whether the HTTP request method (such as POST and GET) is correct. Check whether the domain name and URI configured for service call are correct. For details about the domain name, see Regions and Endpoints.

400

APIG.0301

1. Incorrect IAM authentication information: Failed to decrypt the token. Check whether the entered token is complete.

2. The validity period of a token is 24 hours. If the token expires, obtain a new token and pass it.

3. The AK/SK authentication fails. Check whether the AK/SK is correct and whether the account is restricted due to arrears.

1. Incorrect IAM authentication information: Failed to decrypt the token. Check whether the entered token is complete.

2. The validity period of a token is 24 hours. If the token expires, obtain a new token and pass it.

3. The AK/SK authentication fails. Check whether the AK/SK is correct and whether the account is restricted due to arrears.

decrypt token fail: The token request authentication information of x-auth-token in the HTTP request header is incorrect. Check the sent request and token.

token expires: The token expires. Obtain a new token and pass it.

verify aksk signature fail: Check whether the AK and SK are correct and whether the account is in arrears.

400

APIG.0201

The request body is oversized.

The request body is oversized.

Check whether the request body is oversized. For details, see Constraints.

400

APIG.0308

The request is sent too fast and exceeds the default rate limit of the service.

The request is sent too fast and exceeds the default rate limit of the service.

The request is sent too fast and reaches the rate limit of the API. Reduce the request speed. If you have higher requirements on the request speed, submit a service ticket.

400

ModelArts.0203

Invalid token.

Invalid token.

Check whether the token is correct.

400

ModelArts.4101

The token is empty.

The token is empty.

The HTTP request header does not contain the token request authentication information of x-auth-token. Check the request.

400

ModelArts.4102

Failed to parse the token.

Failed to parse the token.

The token request authentication information of x-auth-token in the HTTP request header is incorrect. Check the sent request and token.

400

ModelArts.4103

The token is invalid.

The token is invalid.

The token request authentication information of x-auth-token in the HTTP request header is incorrect. Check the sent request and token.

400

ModelArts.4104

The length of the request body is invalid.

The length of the request body is invalid.

Check the request body length.

400

ModelArts.4105

The JSON format of the request body is incorrect.

The JSON format of the request body is incorrect.

Check the JSON format of the request body.

400

ModelArts.4106

The account is restricted.

The account is restricted.

Check the user resource status. For details about the account restriction reason, see the description of the account center.

400

ModelArts.4107

An exception occurred when obtaining the temporary AK/SK.

An exception occurred when obtaining the temporary AK/SK.

Contact HUAWEI CLOUD technical support and submit a service ticket.

400

ModelArts.4201

The request URL does not contain the service ID.

The request URL does not contain the service ID.

Check the service ID in the request URL.

400

ModelArts.4202

The request URL format is invalid.

The request URL format is invalid.

Check the request URL format.

400

ModelArts.4203

No access permission.

No access permission.

Check the access permission.

400

ModelArts.4204

The API is not subscribed to.

The API is not subscribed to.

Subscribe to this API. For details, see Subscribing to a Service. If the service has been subscribed to, check whether the region where the service is subscribed to is the same as the region where the service is called. If the region is correct, check whether the URL of the API is spelled correctly and whether the HTTP request method (such as POST and GET) is correct.

400

ModelArts.4601

The external URL is invalid.

The external URL is invalid.

Check whether the entered URL is correct.

400

ModelArts.4603

The file failed to be downloaded from the external URL.

The file failed to be downloaded from the external URL.

Check whether the entered URL is correct.

400

ModelArts.4702

The OBS agency failed to be queried.

The OBS agency failed to be queried.

Check whether the OBS agency has been enabled for the service.

400

ModelArts.4703

The OBS URL is invalid.

The OBS URL is invalid.

Check the entered OBS URL.

400

ModelArts.4704

Failed to obtain the OBS file.

Failed to obtain the OBS file.

Failed to download the OBS file. Check whether the file exists.

400

ModelArts.4705

The OBS file is oversized.

The OBS file is oversized.

Use a file that meets the service size limit as the input. For details, see Constraints.

400

ModelArts.4706

The OBS file does not exist.

The OBS file does not exist.

Failed to download the OBS file. Check whether the file exists.

400

Others

If other error codes are displayed, submit a service ticket.