We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All
ReferencesSystemHardwareWear Engine KitArkTS API Error Codes

ArkTS API Error Codes

NOTE

This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.

1008500001 Network Error

Error Message

Network error. The network is unavailable.

Error Description

Network error.

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.

1008500002 No Linked Device

Error Message

No device is bound.

Error Description

No device is linked.

Possible Causes

No wearable device is connected to the phone.

Solution

  1. Check whether the device is correctly connected to the phone.

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

1008500003 Device Not Connected

Error Message

Device disconnected.

Error Description

The device is not connected.

Possible Causes

  1. The Bluetooth connection between the phone and the device is disconnected.

  2. The device disconnects from the Huawei Health app.

Solution

  1. Check whether Bluetooth is enabled on both the phone and the device.

  2. Check whether the device has been linked and connected via the Huawei Health app.

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

1008500004 Wear Engine Service Not Applied For

Error Message

App has not applied for the Wear Engine service.

Error Description

The phone-side app has not applied for the Wear Engine service.

Possible Causes

  1. The compatibility option is not enabled during the Wear Engine service application process.

  2. You have not applied for the Wear Engine service on HUAWEI Developers.

Solution

  1. Sign in to HUAWEI Developers and apply for integrating Wear Engine. Select the compatibility option.

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

1008500005 User Authorization Not Granted

Error Message

The HUAWEI ID is not authorized.

Error Description

The HUAWEI ID fails to be authenticated.

Possible Causes

The permission required by the API is not granted by the user.

Solution

Ensure that the user has granted related permissions. For details, please refer to Requesting User Authorization.

1008500006 Privacy Statement Not Agreed To

Error Message

User privacy is not agreed.

Error 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.

1008500007 Capability Not Supported on the Wearable Device

Error Message

The device capability is not supported.

Error 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.

1008500008 Account Not Signed In

Error Message

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

Error Description

The account is 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.

1008500009 Account Error

Error Message

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

Error Description

Account error.

Possible Causes

The HUAWEI ID is registered outside the Chinese mainland.

Solution

Guide users to sign in with a HUAWEI ID registered in the Chinese mainland and try again.

1008500010 Invalid Device ID

Error Message

Device ID is invalid.

Error Description

Invalid device ID.

Possible Causes

  1. An incorrect device ID is passed.

  2. An expired device ID is passed.

Solution

Call getConnectedDevices to obtain the device ID again.

1008500011 Invalid File

Error Message

File is invalid.

Error Description

Invalid file.

Possible Causes

The input file is invalid.

Solution

  1. Check whether the file path is valid.

  2. Check whether the file exists.

1008500012 Too Many Callbacks

Error Message

Too many callbacks of the same type.

Error Description

Too many callbacks.

Possible Causes

Too many callbacks of the same type are registered.

Solution

Unsubscribe from events that you no longer need to subscribe to.

1008509999 Internal Error

Error Message

Internal error.

Error Description

Internal error.

Possible Causes

  1. The app information, such as the signature certificate, does not match that on the cloud.

  2. Incorrect randomId.

  3. clientId has not been configured in the app's metadata.

  4. The certificate fingerprint has not been uploaded to AppGallery Connect, the uploaded fingerprint is incorrect, or the uploaded fingerprint has not taken effect.

  5. An unknown error has occurred in the Wear Engine service.

Solution

  1. Verify that the app information such as the signature certificate matches that on HUAWEI Developers.

  2. Disconnect and then reconnect the device.

  3. Configure clientId in metadata.

  4. Ensure that the official certificate fingerprint is uploaded to AppGallery Connect. The fingerprint will take effect within 24 hours after being uploaded.

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