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
Capability not supported. Failed to call the API due to limited device capabilities.
Description
The device does not support this API. Therefore, it cannot be called properly.
Possible causes
The device supports Syscap associated with the API but does not support the API itself.
Solution
Do not use this API on the device. Alternatively, implement conditional checks in the code to mitigate the effects of the application running across various devices, particularly under abnormal circumstances.
Error message
System internal error.
Description
An internal system error occurs.
Possible causes
Unknown.
Solution
Resolve the issue for the specific scenario based on the actual error message. If the error persists, 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
Sport service busy. Workout is alreay started by other application.
Description
The linking service is enabled.
Possible causes
The application or other applications have called start to enable the linking service.
Solution
1. Check whether the linking service is repeatedly enabled in the service process.
2. Capture exception handling scenarios where the linking service is enabled for other applications.
Error message
Unsupported sport type.
Description
The workout type is not supported.
Possible causes
An unsupported workout type is passed.
Solution
Check the passed workout type. For details, please refer to Exercise Record Type Constant.
Error message
Illegal command.
Description
The command is illegal in the current state.
Possible causes
The API is called at a wrong time. The linking service has been enabled for other applications.
Solution
1. Check the service process of the application.
2. Capture exception handling scenarios where the linking service is enabled for other applications.
Error message
Permission verification error. Application has no permission, such as Motion Permission.
Description
The application does not have the required permission, for example, the physical activity permission.
Possible causes
The application does not have the required permission.
Solution
Check whether the application has the required permission to call the API.
Error message
System internal error.
Description
An unknown exception occurs.
Possible causes
Others.
Solution
Resolve the issue for the specific scenario based on the actual error message. If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
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.