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
A mandatory parameter is missing, or the parameter type is invalid.
Solution
Error message
Capability not supported.
Description
This error code is reported when the device supports the target SysCap but does not support a specific API.
Possible causes
The device does not support this API.
Solution
Check whether the device supports this API.
Error message
Network error. The network is unavailable.
Description
Network error.
Possible causes
No network connection.
Solution
Error message
No device is bound.
Description
No linked devices.
Possible causes
No wearable device is connected to the phone.
Solution
Error message
Device disconnected.
Description
Device not connected.
Possible causes
Solution
Error message
App has not applied for the Wear Engine service.
Description
The phone-side app does not apply for the Wear Engine service.
Possible causes
The developer has not applied for the Wear Engine service on HUAWEI Developers.
Solution
Error message
The HUAWEI ID is not authorized.
Description
The HUAWEI ID fails to be authenticated.
Possible causes
The permission required by the API is not granted by the user.
Solution
Request user authorization and make sure that the user has granted required permissions.
Error message
User privacy is not agreed.
Description
The user does not agree to the privacy statement of the Huawei Health app.
Possible causes
The user has never started the Huawei Health app.
Solution
Instruct the user to start the Huawei Health app and agree to the privacy statement.
Error message
The device capability is not supported.
Description
Capability not supported on the wearable device.
Possible causes
The wearable device does not support the capabilities required to successfully call the current API.
Solution
Check the supported device capabilities.
Error message
Account error. The user has not logged in with HUAWEI ID.
Description
Account not signed in.
Possible causes
The account is not signed in.
Solution
Call the API again after the user signs in to their HUAWEI ID.
Error message
Account error. Failed to obtain account information with HUAWEI ID.
Description
Account error.
Possible causes
The HUAWEI ID is not registered in the Chinese mainland (excluding Hong Kong, Macao, and Taiwan).
Solution
Sign in using a HUAWEI ID registered in the Chinese mainland (excluding Hong Kong, Macao, and Taiwan) and try again.
Error message
Device ID is invalid.
Description
Invalid device ID.
Possible causes
Solution
Call getConnectedDevices to obtain the device ID again.
Error message
File is invalid.
Description
Invalid file.
Possible causes
The input file is invalid.
Solution
Error message
Too many callbacks of the same type.
Description
Too many callback functions.
Possible causes
Too many callback functions of the same type are registered.
Solution
Unsubscribe from events that you no longer need to subscribe to.
Error message
Internal error.
Description
Internal error.
Possible causes
An unknown error in Wear Engine.
Solution
Submit a ticket online. Huawei will get back to you as soon as possible.