目录

ArkTS API Error Codes

For details about authorization-related error codes, please refer to Account Kit ArkTS Error Codes.

Name

Value

Description

PACKAGE_FINGERPRINT_CHECK_ERROR

1001500001

The certificate fingerprint of the app fails to be verified.

DUPLICATE_REQUEST_REJECTED

1001500002

Repeated request. No operation is needed to address this error code. Your app needs to implement tap control to prevent consecutive taps from initiating the same request.

ACCOUNT_NOT_LOGGED_IN

1001502001

The HUAWEI ID is not signed in.

APP_NOT_AUTHORIZED

1001502002

The app is not authorized.

PARAMETER_INVALID

1001502003

Invalid parameters.

NETWORK_ERROR

1001502005

Network error.

INTERNAL_ERROR

1001502009

Internal errors, such as Account Kit server errors.

USER_CANCELED

1001502012

The user cancels authorization.

SCOPE_OR_PERMISSION_NOT_REQUESTED

1001502014

The app does not have the required scopes or permissions.

201 Authentication Failure

Error message

Permission verification failed.

Description

Authentication failed.

Possible causes

1. The app fingerprint is incorrectly configured.

2. Insufficient permission

3. Some APIs can be called only by users in the trustlist.

4. The number of test users has reached the upper limit.

Solution

1. Ensure that the certificate fingerprint configured in AppGallery Connect for the app is correct by referring to Adding the Public Key Fingerprint.

2. Verify that required permissions have been granted by referring to Managing User Authorization.

3. The user's application for the beta version has been rejected. Complete the app acceptance process in the console by referring to Applying for Formal Scopes.

4. Submit a ticket online. Huawei will get back to you as soon as possible.

401 Invalid Parameters

Error message

Parameter error.Possible causes: 1. Mandatory parameters are left unspecified;2. Incorrect parameter types; 3.Parameter verification failed.

Description

Invalid parameters.

Possible causes

Invalid parameters.

Solution

1. Check whether the mandatory parameters and value ranges are correct by referring to the documentation.

2. Submit a ticket online. Huawei will get back to you as soon as possible.

1002700001 System Internal Error

Error message

System internal error.

Description

An internal system error occurs.

Possible causes

Unknown.

Solution

Submit a ticket online. Huawei will get back to you as soon as possible.

1002700002 Database Error

Error message

Database processing error.

Description

Database error.

Possible causes

Unknown.

Solution

Submit a ticket online. Huawei will get back to you as soon as possible.

1002701001 Network Error

Error message

Network error. The network is unavailable.

Description

A network error occurs.

Possible causes

The network is not connected.

Solution

1. Check the network configurations.

2. Submit a ticket online. Huawei will get back to you as soon as possible.

1002702001 Not Signed In

Error message

Account error. The user has not logged in with HUAWEI ID.

Description

The account is not signed in.

Possible causes

The account is not signed in.

Solution

1. Start the sign-in authorization process by referring to Managing User Authorization, sign in to the account, and call the API again after the account is signed in.

2. Submit a ticket online. Huawei will get back to you as soon as possible.

1002702002 Account Exception

Error message

Account error. Failed to obtain account information with HUAWEI ID.

Description

Account error.

Possible causes

Account error.

Solution

Submit a ticket online. Huawei will get back to you as soon as possible.

1002703001 Privacy Agreement Not Agreed To

Error message

User privacy is not agreed.

Description

The user does not agree to the privacy agreement.

Possible causes

The user has never started the Huawei Health app.

Solution

Instruct the user to start the Huawei Health app by referring to FAQs.

14500101 Service Exception

Error message

Service exception.

Description

Service exception.

Possible causes

Unknown.

Solution

Submit a ticket online. Huawei will get back to you as soon as possible.