For details about the following 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 | No HUAWEI ID is 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 revokes authorization. |
| SCOPE_OR_PERMISSION_NOT_REQUESTED | 1001502014 | The app does not have the required scopes or permissions. |
Error Message
System internal error.
Error Description
Internal system error.
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.
Error Description
The database is abnormal.
Possible Causes
Unknown.
Solution
Restart the device and try again. If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
Error Message
Network error. The network is unavailable.
Error Description
A network error occurs.
Possible Causes
The network is not connected.
Solution
Check the network configurations.
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.
Error Description
You have not signed in with an account.
Possible Causes
You have not signed in with an account.
Solution
Start sign-in authorization by referring to Managing User Authorization. After signing in, call the API again.
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.
Error Description
Account exception.
Possible Causes
Account exception.
Solution
Restart the device and try again. If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
Error Message
User privacy is not agreed.
Error 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. For details, please refer to FAQs.
Error Message
Sport service busy. Workout is already started by other application.
Error Description
The linking service is enabled.
Possible Causes
The app or other apps have called start to enable the linking service.
Solution
Check whether the linking service is repeatedly enabled in the service process.
Capture exception handling scenarios where the linking service is enabled for other apps.
Error Message
Unsupported sport type.
Error 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.
Error 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 apps.
The API is called at a wrong time. The linking service is not enabled.
The API is called at a wrong time. The linking service is not complete.
Solution
Check the service process of the app.
Capture exception handling scenarios where the linking service is enabled for other apps.
Select a proper time to call the API.
Error Message
Permission verification error. Application has no permission, such as Motion Permission.
Error Description
The app does not have the required permissions, for example, the physical activity permission.
Possible Causes
The app does not have the required permissions.
Solution
Check whether the app has the required permission to call the API.
Error Message
Failed to load the dynamic library.
Error Description
Failed to load the dynamic library.
Possible Causes
The dynamic library file does not exist or a dynamic library has been loaded.
Solution
Error Message
Failed to unload the dynamic library.
Error Description
Failed to uninstall the dynamic library.
Possible Causes
The dynamic library has been uninstalled.
Solution
Check whether the input path for unload is correct.
Call the unload function and check whether this error code is returned. If so, the dynamic library has been uninstalled. If not, the dynamic library is successfully uninstalled.
Error Message
System internal error.
Error Description
An unknown exception occurred.
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.
Error Description
Service exception.
Possible Causes
Unknown.
Solution
Restart the device and try again. Submit a ticket online. Huawei will get back to you as soon as possible.
Error code 201 is a universal error code, indicating that the parameter check fails.
Error code 201 returned by Health Service Kit indicates an authentication failure, which may be caused by the following:
Possible Causes
The app fingerprint is incorrectly configured.
Insufficient permission.
Some APIs can be called only by users in the trustlist.
The number of test users has reached the upper limit.
Solution
Check the fingerprint certificate of the app in AppGallery Connect. For details, please refer to Adding a Public Key Fingerprint.
Ensure that the user has been granted related permissions. For details, please refer to Managing User Authorization.
Complete the app acceptance process in the console by referring to Applying for Verification if the user's application for being a test user failed.
Submit a ticket online. Huawei will get back to you as soon as possible.