For details about authorization-related error codes, please refer to Account Kit ArkTS Error Codes.
| Name | Value | Description |
|---|---|---|
| PACKAGE_FINGERPRINT_CHECK_ERROR | The certificate fingerprint of the app fails to be verified. | |
| DUPLICATE_REQUEST_REJECTED | 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 | The HUAWEI ID is not signed in. | |
| APP_NOT_AUTHORIZED | The app is not authorized. | |
| PARAMETER_INVALID | Invalid parameters. | |
| NETWORK_ERROR | Network error. | |
| INTERNAL_ERROR | Internal errors, such as Account Kit server errors. | |
| USER_CANCELED | The user cancels authorization. | |
| SCOPE_OR_PERMISSION_NOT_REQUESTED | The app does not have the required scopes or permissions. |
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.
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.
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.
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.
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.
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.
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.
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.
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.