目录

ArkTS API Error Codes

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

1008301002 Route Switching Failed

Error Message

Route switching failed.

Error Description

Route switching failed.

Possible Causes

The input parameters do not meet requirements, or the route switching is abnormal.

Solution

Check whether the input parameters meet the requirements of InteractiveLivenessConfig. Try again after a period of time and perform related logic judgment.

1008302000 Detection Algorithm Initialization

Error Message

Detection algorithm initialization.

Error Description

No detection data returned because the detection algorithm initialization has not finished.

Possible Causes

Liveness detection has not been performed when the detection result is requested.

Solution

Obtain the result after the liveness detection is complete.

1008302001 Detection Timeout

Error Message

Detection timeout.

Error Description

The detection times out. As a result, the failure screen is displayed. If you have configured your own failure screen or back route switching, you are advised to perform the detection again.

Possible Causes

  1. The user does not perform the specified action as prompted. For example, the user shakes the head to the right when the prompt asks the user to shake the head to the left.

  2. The environment does not meet the detection requirements.

Solution

  1. Perform the specified action slowly as prompted.

  2. Avoid performing liveness detection in low light or direct sunlight environments.

1008302002 Incorrect Actions

Error Message

Action mutual exclusion error.

Error Description

Actions are incorrect. As a result, the failure screen is displayed. If you have configured your own failure screen or back route switching, you are advised to perform the detection again.

Possible Causes

  1. During the detection, related actions are not completed as prompted. As a result, the detection fails.

  2. The detection is performed during exercise, resulting in a failure in detecting mutually exclusive actions.

Solution

  1. Avoid performing the detection during exercise.

  2. Slowly complete the specified action as prompted.

1008302003 Continuity Check Failure

Error Message

Continuity Check Failure.

Error Description

The continuity check fails. As a result, the failure screen is displayed. If you have configured your own failure screen or back route switching, you are advised to perform the detection again.

Possible Causes

During check of multiple actions, related actions are not completed as prompted. As a result, the continuity check fails.

Solution

Perform related actions as prompted.

1008302004 Incomplete Detection

Error Message

The test is not complete.

Error Description

The detection is incomplete. If you have configured your own failure screen or back route switching, you are advised to perform the detection again.

Possible Causes

  1. The user exits the detection.

  2. The detection process is interrupted, for example, the screen is turned off or the app is switched to the background.

Solution

Complete the liveness detection process again and ensure that the device stays on the liveness detection screen during the process.

1013700002 Abnormal Service

Error Message

The service is abnormal.

Error Description

The underlying service is abnormal when the function is used.

Possible Causes

  1. The underlying capabilities fail to be bound.

Solution

Submit a ticket online to obtain technical support.