目录

ArkTS API Error Codes

This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.

200 Running Timeout

Error Message

Run timed out, please try again later.

Error Description

Running timed out. Please try again.

Possible Causes

A large number of requests exist and cannot be processed in a timely manner.

Solution

Wait for a period of time and try again. Perform related logical judgement.

401 Parameter Error

Error Message

The parameter check failed.

Error Description

The input parameters are incorrect.

Possible Causes

The input image type or parameter value is incorrect. Therefore, the input image does not meet the requirements.

Solution

Ensure that the input image type and parameter values are correct. Then, try again.

1001400001 OCR Running Failure

Error Message

Failed to run OCR, please try again.

Error Description

Failed to run the OCR service. Please try again.

Possible Causes

The input does not meet the requirements, or the OCR service is abnormal.

Solution

Wait for a period of time and try again. Perform related logical judgement.

1001400002 Abnormal OCR Service

Error Message

The OCR service is abnormal.

Error Description

The OCR service is abnormal.

Possible Causes

The OCR service is abnormal.

Solution

The OCR system is abnormal. Restart the device and try again.

1008400001 Face Verification Running Failure

Error Message

Failed to run face comparator, please try again.

Error Description

Face verification failed. Please try again.

Possible Causes

The input does not meet the requirements, or the face verification service is abnormal.

Solution

Wait for a period of time and try again. Perform related logical judgement.

1008400002 Face Verification Service Exception

Error Message

The face comparator service is abnormal.

Error Description

The face verification service is abnormal.

Possible Causes

The face verification service is abnormal.

Solution

The face verification system is abnormal. Restart the device and try again.

1008800001 Face Detection Running Failure

Error Message

Failed to run face detector, please try again.

Error Description

Failed to run the face detection. Please try again.

Possible Causes

The input does not meet the requirements, or the face detection service is abnormal.

Solution

Wait for a period of time and try again. Perform related logical judgement.

1008800002 Abnormal Face Detection Service

Error Message

The face detector service is abnormal.

Error Description

The face detection service is abnormal.

Possible Causes

The face detection service is abnormal.

Solution

The face detection system is abnormal. Restart the device and try again.

1011000001 Running Failure

Error Message

Failed to run, please try again.

Error Description

Running failed. Please try again.

Possible Causes

The input does not meet the requirements. For example, the input is an image without a prominent subject, a damaged image that cannot be opened, or a non-image.

Solution

Pass another image with a salient subject (the area proportion should be greater than 5‰).

1011000002 Service Error

Error Message

The service is abnormal.

Error Description

The service is abnormal.

Possible Causes

A service error occurs.

Solution

Restart the device and try again.

1011000003 Model Running Failure

Error Message

Failed to run the model, please try again.

Error Description

Failed to run the model. Please try again.

Possible Causes

Model loading is abnormal.

Solution

Try again later.

1011000004 Model Running Timeout

Error Message

Running the model timed out. Try again later.

Error Description

Model running times out.

Possible Causes

Model loading is abnormal.

Solution

Try again later.

1018700001 Service Error

Error Message

Service exception.

Error Description

The service is running abnormally.

Possible Causes

  1. The service running timed out.

  2. The model inference failed.

Solution

Restart the device and try again.

1013100001 Image Unavailable

Error Message

Invalid image path or size.

Error Description

The image address or dimensions do not meet the requirements.

Possible Causes

  1. The image address is not the sandbox address of the app or is empty.

  2. The image dimensions do not meet the requirements.

Solution

Use an image that meets the requirements. For details about the image size requirements, see Constraints.

1013100002 Service Error

Error Message

Service exception.

Error Description

The service is running abnormally.

Possible Causes

  1. The service running timed out.

  2. The model inference failed.

Solution

Restart the device and try again.

1013100003 Capability Updated

Error Message

The capability has been updated. Please use the function clearData, and after completing it, use this function again.

Error Description

The model capability is updated.

Possible Causes

  1. The model on the current device has been updated.

Solution

Call the clearData method to clear the data, and then call the previous method again.