目录

ArkTS API Error Codes

This section describes only the error codes related to Game Service Kit. For details about universal error codes, please refer to Universal Error Codes.

1010300001 Common Game Error

Message

System internal error.

Description

Common game error.

Possible causes

An internal error occurs in the Game Service Kit system.

Solution

Submit a ticket online. Huawei engineers will handle the problems in time.

1010300002 Authentication Failed

Message

Auth Failed.

Description

Authentication failed.

Possible causes

The network connection is abnormal, or a parameter is incorrect.

Solution

  1. For the first sign-in on a device, check whether the network is properly connected.
  2. Check whether the parameters passed by the init API are correct.

1010300003 Invalid Request

Message

Invalid request.

Description

Invalid request.

Possible causes

Other APIs are called when the initialization is not performed or fails.

Solution

Call the init API first and ensure that the API is successfully called.

1002000001 Common Game Error

Message

System internal error.

Description

Common game error.

Possible causes

An internal error occurs in the Game Service Kit system.

Solution

Submit a ticket online. Huawei engineers will handle the problems in time.

1002000002 Network Error

Message

Network connection error.

Description

Network error.

Possible causes

Network connection error.

Solution

Check whether the network is properly connected.

1002000003 No HUAWEI ID Information Is Found

Message

The HUAWEI ID is not signed in or not authorized.

Description

No HUAWEI ID information is found.

Possible causes

No HUAWEI ID information is found.

Solution

Ensure that the user has signed in using a HUAWEI ID and granted authorization.

1002000004 Identity Verification Is Required But the Player Cancels It or Identity Verification Has Not Been Performed

Message

User cancels real name authentication or not real name.

Description

Identity verification is required but the player cancels it or identity verification has not been performed.

Possible causes

Identity verification is required but the player cancels it or identity verification has not been performed.

Solution

Check whether the HUAWEI ID has passed identity verification.

1002000005 Supported HUAWEI IDs: HUAWEI IDs of Which the Service and Registration Locations Are Both the Chinese Mainland

Message

The country or region of the signed-in Huawei ID does not support.

Description

Supported HUAWEI IDs: HUAWEI IDs of which the service and registration locations are both the Chinese mainland.

Possible causes

The service and registration locations of the HUAWEI ID are not the Chinese mainland.

Solution

Check whether the service and registration locations of the HUAWEI ID are the Chinese mainland.

1002000006 The Player Is a Minor and the Current Time Is Not Within the Permitted Game Duration

Message

User is underage and has no playable time.

Description

The player is a minor and the current time is not within the permitted game duration.

Possible causes

The player is a minor and the current time is not within the permitted game duration.

Solution

Check whether the current time is between 20:00 to 21:00 on Fridays, weekends, and legal holidays. If not, the player is not allowed to play the game. If so, submit a ticket online. Huawei engineers will handle the problem in time.

1002000008 The HUAWEI ID Is in the Blocklist

Message

The HUAWEI ID is in the blocklist.

Description

The HUAWEI ID is in the blocklist.

Possible causes

The account is forbidden to sign in to the game.

Solution

Submit a ticket online. Huawei engineers will handle the problems in time.

1002000009 This API Cannot Be Called by the Current Game

Message

The game account is unavailable for the game.

Description

This API cannot be called by the current game.

Possible causes

This API cannot be called by the current game.

Solution

Submit a ticket online. Huawei engineers will handle the problems in time.

1002000010 teamPlayerId Does Not Match the Current Player

Message

The playerId is not current player.

Description

teamPlayerId does not match the current player.

Possible causes

When the bindPlayer or unbindPlayer API is called, an incorrect teamPlayerId is passed.

Solution

Check whether teamPlayerId is correct. If it is not correct, call the bindPlayer or unbindPlayer API again to transfer the correct teamPlayerId.

1002000011 The Player Has Not Confirmed the Agreement or Privacy Statement

Message

Agreement not agreed.

Description

The player has not confirmed the agreement or privacy statement

Possible causes

The player cancels the privacy agreement, or another API is called before the init API is successfully called.

Solution

Call the init API again.

1002000012 The Official Game Account Has Been Associated with teamPlayerId

Message

The thirdOpenId or teamPlayerId has been bound.

Description

The official game account has been associated with teamPlayerId.

Possible causes

When the bindPlayer API is called, the official game account has been associated with teamPlayerId.

Solution

No action is required.

1002000013 The Official Game Account Is Not Associated with teamPlayerId

Message

The thirdOpenId and teamPlayerId are not bound.

Description

The official game account is not associated with teamPlayerId.

Possible causes

When the unbindPlayer API is called, the official game account is not associated with teamPlayerId.

Solution

No action is required.

1002000014 This API Is Not Available for This Game

Message

This interface is not available for this game.

Description

This API is not available for this game.

Possible causes

This API cannot be called by the current game.

Solution

Submit a ticket online. Huawei engineers will handle the problems in time.

1002000015 The Player Information Is Invalid

Message

The current player information is invalid.

Description

The player information is invalid.

Possible causes

The player information has expired.

Solution

Call the unionLogin API again to obtain the player information.

1002000016 The Player Cancels Multi-provider Sign-In

Message

User cancels union login.

Description

The player cancels multi-provider sign-in.

Possible causes

The player cancels multi-provider sign-in during the multi-provider sign-in process.

Solution

To continue the sign-in, call the unionLogin API again.

1002000017 Invalid App

Message

Illegal application identity.

Description

Invalid app.

Possible causes

The configuration information, such as the client ID, app ID, and signature, is incorrect or missing.

Solution

Check whether information, such as the client ID, app ID, and signature, is correctly configured, and supplement or modify the configuration as required.