目录

ArkTS Error Codes

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

1001500001 App Certificate Fingerprint Verification Failure

Message

Failed to check the fingerprint of the app bundle.

Description

The certificate fingerprint of the app fails to be verified.

Possible causes

1. The client_id field is not set, or its value is incorrect.

2. The certificate fingerprint of the app is not configured or is incorrect.

3. The signature of the debug version of the installation package is different from that of the release version.

Solution

1. Ensure that the client_id field in the module.json5 file of the module whose module type is entry is correctly set by referring to Configuring the Client ID.

2. Ensure that the certificate fingerprint configured in AppGallery Connect for the app is correct by referring to here.

3. Update the version code in the app.json5 file to invalidate the local cache and try again.

1001500002 Repeated Request

Message

This error code is reported when a request is already being processed.

Description

Repeated request.

Possible causes

The user requests a page of Account Kit repeatedly.

Solution

No special processing is required.

1001500003 Unsupported Scopes or Permissions

Message

The scopes or permissions are not supported.

Description

The scopes or permissions are not supported.

Possible causes

1. The signed-in HUAWEI ID does not support the data requested by the authorized app.

2. In scenarios such as obtaining and verifying real-name information and verifying the identity by face, a user signs in using a HUAWEI ID registered in the Chinese mainland, but uses the Permit for Traveling to and from Hong Kong, Macao, and Taiwan for identity verification.

3. In scenarios such as verifying real-name information and verifying the identity by face, 2-in-1 devices or the devices with faulty front cameras do not support authorization based on the passed verifyRealName and verifyFace scopes.

4. During atomic service development, the profile scope is passed for calling the AuthorizationWithHuaweiIDRequest API.

5. In scenarios such as verifying real-name information and verifying the identity by face, the HUAWEI ID used for sign-in is a child account.

Solution

1. Use or register a HUAWEI ID in the Chinese mainland and sign in again. In the one-tap sign-in scenario, display other sign-in options in your app.

2. In scenarios such as obtaining and verifying real-name information and verifying the identity by face, guide the user to change to a HUAWEI ID verified using the real name of a Chinese mainland ID card.

3. In scenarios such as verifying real-name information and verifying the identity by face, use another device whose front camera works normally to authorize the verifyRealName and verifyFace scopes.

4. During atomic service development, do not use the AuthorizationWithHuaweiIDRequest API to obtain users' avatars. For details about the operations, please refer to the related section in the atomic service development guide.

5. Use or register an adult account in the Chinese mainland and call the API again.

1001500004 Function Not Supported by the Signed-In HUAWEI ID

Message

The account does not support this function.

Description

This function is unavailable for the HUAWEI ID already signed in.

Possible causes

If the HUAWEI ID is not registered in the Chinese mainland or is a child account, the API for obtaining the mobile number consistency status cannot be called.

Solution

Use or register a non-child account in the Chinese mainland and call the API again.

1001500005 Function Restricted

Message

This function is restricted from being called.

Description

This function is restricted.

Possible causes

The getMobileNumberConsistency API for obtaining the mobile number consistency status has been called for more than 50 times within 24 hours.

Solution

1. The app controls the number of times that the API for obtaining the mobile number consistency status is called to no more than 50 within 24 hours.

2. If this error code is displayed during debugging, restart your device to rectify the error.

1001502001 User Has Not Signed in to HUAWEI ID

Message

The user has not logged in with HUAWEI ID.

Description

The user has not signed in to the HUAWEI ID.

Possible causes

The user has not signed in to the HUAWEI ID.

Solution

To guide the user to sign in, call LoginWithHuaweiIDRequest and set forceLogin to true to open the sign-in screen or guide the user to sign in with a HUAWEI ID in system settings.

1001502002 App Not Authorized

Message

The application is not authorized.

Description

The app is not authorized.

Possible causes

1. When the AuthorizationWithHuaweiIDRequest API is called and forceAuthorization is set to false, the user does not give authorization to the app.

2. The passed value of idValue in ConsistencyRequest when the getMobileNumberConsistency API is called is incorrect, or the user has revoked the authorization on the app.

3. The passed value of idValue in StateRequest when the getHuaweiIDState API is called is incorrect, or the user has revoked the authorization on the app.

Solution

1. To guide the user to authorize the app, call AuthorizationWithHuaweiIDRequest and set forceAuthorization to true (default value) to open the authorization screen for the user.

2. Obtain the correct value of idValue by referring to ConsistencyRequest or request the user to give authorization again.

3. Obtain the correct value of idValue by referring to StateRequest or request the user to give authorization again.

1001502003 Invalid Input Parameter Value

Message

Invalid input parameter value.

Description

The input parameter value is invalid.

Possible causes

1. Exceptions occur when parameters are passed. For example, during the call of the authorization API (AuthorizationWithHuaweiIDRequest), the necessary scope and permission are not passed, or client_id is not configured or incorrectly configured.

2. In the one-tap sign-in scenario, the passed anonymous mobile number may be incorrect or the authorization API (AuthorizationWithHuaweiIDRequest) is not called to obtain the anonymous mobile number.

Solution

1. Ensure that input parameters are correctly passed.

2. If the fault is caused by cause 2, pass the anonymous mobile number obtained through the authorization API AuthorizationWithHuaweiIDRequest.

3. Ensure that the client_id field in the module.json5 file of the module whose module type is entry is correctly set by referring to Configuring the Client ID.

1001502005 Network Error

Message

Network error.

Description

Network error.

Possible causes

The device is not connected to the network.

Solution

Check the network connection.

1001502009 Internal Error

Message

Internal error.

Description

Internal error.

Possible causes

An error occurs on the Account Kit server, an API that is not supported by the current device is called, or other internal errors occur.

Solution

1. Restart your device.

2. Check whether the current device supports the API. You are advised to use canIUse to check whether the current device supports an API before calling it.

3. If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.

1001502012 Authorization Revoked

Message

The user canceled the authorization.

Description

The user revokes authorization.

Possible causes

The user revokes authorization.

Solution

No special processing is required.

1001502014 App Does Not Have Required Scopes or Permissions

Message

The app does not have the required scopes or permissions.

Description

The app does not have the required scopes or permissions.

Possible causes

Required scopes or permissions have not been applied for.

Solution

Apply for required scopes or permissions.

1001600001 No Network Connection

Message

The network is unavailable.

Description

No network connection.

Possible causes

The network is not properly connected.

Solution

Ensure that the network is properly connected.

1001600002 User Has Not Signed in to HUAWEI ID

Message

The user has not logged in with HUAWEI ID.

Description

The user has not signed in to the HUAWEI ID.

Possible causes

The user has not signed in to the HUAWEI ID.

Solution

To guide the user to sign in, call LoginWithHuaweiIDRequest and set forceLogin to true to open the sign-in screen or guide the user to sign in with a HUAWEI ID in system settings.

1001600003 App Certificate Fingerprint Verification Failure

Message

Failed to check the fingerprint of the application bundle.

Description

The certificate fingerprint of the app fails to be verified.

Possible causes

1. The client_id field is not set, or its value is incorrect.

2. The certificate fingerprint of the app is not configured or is incorrect.

Solution

1. Ensure that the client_id field in the module.json5 file of the module whose module type is entry is correctly set by referring to Configuring the Client ID.

2. Ensure that the certificate fingerprint configured in AppGallery Connect for the app is correct by referring to here.

1001600004 App Does Not Have Required Permissions

Message

The application does not have the required permissions.

Description

The app does not have the required permissions.

Possible causes

The permissions of the corresponding API are not applied for.

Solution

Ensure that the app has obtained the required permissions of the API properly.

1001600005 Operation Canceled by User

Message

The user canceled the current operation.

Description

The user cancels the current operation.

Possible causes

The user cancels the current operation.

Solution

No special processing is required.

1001600006 Failed to Obtain the Required Verification Element from the Device

Message

The requested verification factors are unavailable on the device.

Description

The required verification element is not obtained from the device.

Possible causes

Verification elements, such as the mobile number, security mobile number, email address, and security email address, are not configured for secondary verification.

Solution

Instruct the user to go to Personal info or Account security under Settings > HUAWEI ID to configure verification elements.

1001600007 Internal Error

Message

Internal error.

Description

Internal error.

Possible causes

Internal errors, such as Account Kit server errors.

Solution

1. Restart your device.

2. If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.

1008100001 Internal Error

Message

Internal error.

Description

Internal error.

Possible causes

Internal errors, such as Account Kit server errors.

Solution

1. Restart your device.

2. If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.

1008100002 No Network Connection

Message

The network is unavailable.

Description

No network connection.

Possible causes

The network is not properly connected.

Solution

Ensure that the network is properly connected.

1008100003 User Has Not Signed in to HUAWEI ID

Message

The user has not signed in with HUAWEI ID.

Description

The user has not signed in to the HUAWEI ID.

Possible causes

The user has not signed in to the HUAWEI ID.

Solution

To guide the user to sign in, call LoginWithHuaweiIDRequest and set forceLogin to true to open the sign-in screen or guide the user to sign in with a HUAWEI ID in system settings.

1008100004 App Certificate Fingerprint Verification Failure

Message

Failed to check the fingerprint of the app bundle.

Description

The certificate fingerprint of the app fails to be verified.

Possible causes

1. The client_id field is not set, or its value is incorrect.

2. The certificate fingerprint of the app is not configured or is incorrect.

Solution

1. Ensure that the client_id field in the module.json5 file of the module whose module type is entry is correctly set by referring to Configuring the Client ID.

2. Ensure that the certificate fingerprint configured in AppGallery Connect for the app is correct by referring to here.

1008100005 App Does Not Have Required Permissions

Message

The app does not have the required permissions.

Description

The app does not have the required permissions.

Possible causes

The permissions of the corresponding API are not applied for.

Solution

Check whether the permissions of the corresponding API have been applied for. For details about how to apply for the permissions, please refer to point 2 in Prerequisites.

1008100006 User Exits Shipping Address Management Service Without Completing Current Operation

Message

The user quits the shipping address management service without finishing.

Description

A user exits the shipping address management service without completing the current operation.

Possible causes

The user closes the shipping address management screen without completing the shipping address selection.

Solution

No special processing is required.

1008100007 Shipping Address Management Service Unavailable for Current HUAWEI ID

Message

The shipping address management service does not support the HUAWEI ID that is already signed in.

Description

The shipping address management service is unavailable for the HUAWEI ID signed in.

Possible causes

The shipping address management service is unavailable for the HUAWEI ID signed in (for example, HUAWEI ID registered outside the Chinese mainland).

Solution

Sign in using a HUAWEI ID registered in the Chinese mainland, or use other methods to obtain the shipping address.

1010060001 User Canceled Invoice Service

Message

The operation was canceled by the user.

Description

The user cancels the invoice service.

Possible causes

The user cancels the operation before it is complete.

Solution

No special processing is required.

1010060002 System Internal Error

Message

System internal error.

Description

System internal error.

Possible causes

Internal errors, such as Account Kit server errors.

Solution

1. Restart your device.

2. If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.

1010060003 App Certificate Fingerprint Verification Failure

Message

Failed to check the fingerprint of the app bundle.

Description

The certificate fingerprint of the app fails to be verified.

Possible causes

1. The client_id field is not set, or its value is incorrect.

2. The certificate fingerprint of the app is not configured or is incorrect.

Solution

1. Ensure that the client_id field in the module.json5 file of the module whose module type is entry is correctly set by referring to Configuring the Client ID.

2. Ensure that the certificate fingerprint configured in AppGallery Connect for the app is correct by referring to here.

1010060004 API Calls Too Frequent

Message

Too frequent API calls.

Description

The API is called too frequently.

Possible causes

The API call interval is too short.

Solution

Control the API call frequency.

1010060005 Network Connection Error

Message

Network connection error.

Description

Network connection error.

Possible causes

The network is not properly connected.

Solution

Ensure that the network is properly connected.

1010060006 User Has Not Signed in to HUAWEI ID

Message

The HUAWEI ID is not signed in.

Description

The user has not signed in to the HUAWEI ID.

Possible causes

The user has not signed in to the HUAWEI ID.

Solution

To guide the user to sign in, call LoginWithHuaweiIDRequest and set forceLogin to true to open the sign-in screen or guide the user to sign in with a HUAWEI ID in system settings.

1010060007 Invoice Title to Be Created Already Exists

Message

Failed to create an invoice title because the title already exists.

Description

This error code is reported when the invoice title to be created already exists.

Possible causes

The invoice title already exists.

Solution

No special processing is required.

1010060008 Invoice Service Unavailable for Current HUAWEI ID

Message

The invoice service does not support the logged HUAWEI ID.

Description

The invoice service is unavailable for the HUAWEI ID signed in.

Possible causes

The HUAWEI ID may be registered outside the Chinese mainland.

Solution

Sign in using a HUAWEI ID registered in the Chinese mainland, or use other methods to obtain the invoice title.

1005300001 The User Does Not Accept Agreements

Message

The user did not accept the agreement.

Description

The user does not accept the agreements.

Possible causes

When the HUAWEI ID sign-in component is used, the agreement status is not set to ACCEPTED.

Solution

The user needs to manually accept the agreements.

1005300002 One-Tap HUAWEI ID Sign-in Button Not Tapped by User

Message

The user did not click the HUAWEI ID login button.

Description

The user does not tap the one-tap HUAWEI ID sign-in button.

Possible causes

The developer bypasses the one-tap HUAWEI ID sign-in button and directly calls the continueLogin API.

Solution

The continueLogin API is called only when the user taps the one-tap HUAWEI ID sign-in button and taps the button for accepting agreements and signing in from the displayed dialog box.

1009900002 Youth Mode Not Enabled

Message

The minors mode is not enabled.

Description

The youth mode is not enabled.

Possible causes

The password verification request is called when the youth mode is not enabled.

Solution

Enable the youth mode.

1009900003 Operation Canceled by User

Message

The user canceled the operation.

Description

The user cancels the operation.

Possible causes

A user taps a screen close button.

Solution

Process the logic for the user to cancel the current operation.

1009900005 Youth Mode Already Enabled

Message

The minors mode is already on.

Description

The youth mode is already enabled.

Possible causes

The youth mode enabling API is repeatedly called when the youth mode has been enabled.

Solution

Call getMinorsProtectionInfoSync() or getMinorsProtectionInfo() to check the status of the youth mode. If the youth mode is disabled, call the API to enable it.

1009900006 Youth Mode Already Disabled

Message

The minors mode is already off.

Description

The youth mode is already disabled.

Possible causes

The youth mode disabling API is repeatedly called when the youth mode has been disabled.

Solution

Call getMinorsProtectionInfoSync() or getMinorsProtectionInfo() to check the status of the youth mode. If the youth mode is enabled, call the API to disable it.

1009900007 Unsupported Account

Message

Unsupported HUAWEI ID.

Description

The account is not supported.

Possible causes

The HUAWEI ID may be registered outside the Chinese mainland.

Solution

Sign in using a HUAWEI ID registered in the Chinese mainland.

1009900011 Service Unavailable

Message

Service not available.

Description

Service unavailable.

Possible causes

The device enters the private space mode.

Solution

Prompt the user to disable the private space mode by going to Settings > Privacy > PrivateSpace, or build your own youth mode as needed.

1002500001 No Network Connection

Message

The network is unavailable.

Description

No network connection.

Possible causes

The network is not properly connected.

Solution

Ensure that the network is properly connected.

1002500002 User Has Not Signed in to HUAWEI ID

Message

The user has not logged in with HUAWEI ID.

Description

The user has not signed in to the HUAWEI ID.

Possible causes

The user has not signed in to the HUAWEI ID.

Solution

To guide the user to sign in, call LoginWithHuaweiIDRequest and set forceLogin to true to open the sign-in screen or guide the user to sign in with a HUAWEI ID in system settings.

1002500003 App Certificate Fingerprint Verification Failure

Message

Failed to check the fingerprint of the application bundle.

Description

The certificate fingerprint of the app fails to be verified.

Possible causes

1. The client_id field is not set, or its value is incorrect.

2. The certificate fingerprint of the app is not configured or is incorrect.

Solution

1. Ensure that the client_id field in the module.json5 file of the module whose module type is entry is correctly set by referring to Configuring the Client ID.

2. Ensure that the certificate fingerprint configured in AppGallery Connect for the app is correct by referring to here.

1002500004 App Does Not Have Required Permissions

Message

The application does not have the required permissions.

Description

The app does not have the required permissions.

Possible causes

The permissions of the corresponding API are not applied for.

Solution

Check whether the permissions of the corresponding API have been applied for. For details about how to apply for the permissions, please refer to the development prerequisites in the corresponding scenario.

1002500005 Verification Canceled by User

The user canceled the verification of the HUAWEI ID.

Description

The user cancels verification.

Possible causes

The user cancels the verification operation.

Solution

No special processing is required.

1002500006 Internal Error

Message

Internal error.

Description

Internal error.

Possible causes

An error occurs on the Account Kit server, an API that is not supported by the current device is called, or other internal errors occur.

Solution

1. Restart your device.

2. Check whether the current device supports the API. You are advised to use canIUse to check whether the current device supports an API before calling it.

3. If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.

1002500008 Real-Name Information Verification Not Supported for HUAWEI ID

Message

Real-name verification is not supported for the HUAWEI ID.

Description

The HUAWEI ID does not support real-name information verification.

Possible causes

The HUAWEI ID is not registered in the Chinese mainland.

Solution

Sign in using a HUAWEI ID registered in the Chinese mainland and try again.

1002500009 Real-Name Channel Verification Failed

Message

Real-name channel verification failed.

Description

Failed to verify the real-name channel.

Possible causes

1. The real-name channel ID passed is incorrect.

2. An error occurred during real-name channel verification.

Solution

1. Check whether the real-name channel ID is correct.

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

1002500011 Unmatched Face in Proof of Identify

Message

Your face does not match your facial image as proof of identity.

Description

The user's face does not match the facial image used as proof of identity.

Possible causes

The user's face does not match the facial image used as proof of identity.

Solution

Instruct the user to verify the face again.

1002500012 No Real-Name Information Found

Message

No real-name information is found for the HUAWEI ID.

Description

No real-name information is found.

Possible causes

The account is not verified by real-name information.

Solution

Instruct the user to go to the Real-name authentication menu under Settings > HUAWEI ID > Personal info to complete identity verification.

1002500013 Unmatched Name and ID Card Number

Message

Your name and ID number do not match.

Description

The name does not match the ID card number.

Possible causes

1. The user input is incorrect.

2. The user may have changed the household register recently, or reported the loss of the ID card and issued a new card. However, the new identity information has not been synchronized with that of the Ministry of Public Security.

Solution

1. Enter the name and ID card number again and try again.

2. If the fault is caused by cause 2, try again later.

1002500014 Too Many Attempts for Real-Name Information Verification

Message

Too many real-name verification attempts.

Description

Too many real-name information verification attempts.

Possible causes

Too many real-name information verification attempts.

Solution

Try again 24 hours later.

1002500015 Invalid Parameter verificationToken

Message

The verificationToken parameter is incorrectly set.

Description

The verificationToken parameter is invalid.

Possible causes

The verificationToken parameter is invalid.

Solution

Obtain the correct value of verificationToken and try again.

1002500016 API Not Supported on Device

Message

This device does not support this API.

Description

The device does not support this API.

Possible causes

The device's front camera is unavailable in the scenario of verifying the identity by face.

Solution

Rectify the front camera fault or replace with a device whose front camera works normally, and try again.