The result codes of the Android client consist of HMS Core SDK Framework Result Codes and HMS Core Push SDK Result Codes. If you encounter a result code that cannot be found here, contact Huawei technical support. Huawei will get back to you as soon as possible.
Result Code | Value | Description | Solution |
|---|---|---|---|
ErrorCode.ARGUMENTS_INVALID | 907135000 | Incorrect input parameters. | Verify that related input parameters are correctly set. For example, check whether appid in the Manifest file is correctly set. |
ErrorCode.INTERNAL_ERROR | 907135001 | An internal error occurred and cannot be rectified. | The internal API is abnormal. |
ErrorCode.NOT_IN_SERVICE | 907135005 | This service is unavailable in this region. | Verify that the API is supported in the region where the user is located. |
ErrorCode.SESSION_INVALID | 907135006 | HMS Core SDK internal error. The AIDL connection session is invalid. | Generally, this error does not occur. If this result code is returned, perform the following operations: |
ErrorCode.GET_SCOPE_ERROR | 907135700 | Failed to call the gateway to query Scope of the app. |
|
ErrorCode.SCOPE_LIST_EMPTY | 907135701 | Scope of OpenGW is not configured. |
|
ErrorCode.CERT_FINGERPRINT_EMPTY | 907135702 | No certificate fingerprint is configured for OpenGW. |
|
ErrorCode.PERMISSION_LIST_EMPTY | 907135703 | The permission of OpenGW is not configured. | Verify that the related function has been enabled during app creation. For example, to represent a user using unionId in an app, enable unionId when creating the app. |
ErrorCode.CLIENT_API_INVALID | 907135003 | Invalid apiclient object. |
|
ErrorCode.EXECUTE_TIMEOUT | 907135004 | AIDL call timed out. |
|
ErrorCode.GET_SCOPE_NETWORK_ERROR | 907135704 | Failed to call the gateway to query Scope of the app due to an exception returned by the server. |
|
StatusCode.AUTH_INFO_NOT_EXIST | 6002 | The app's authentication information does not exist. | Verify that the current app has been created and has applied for related services. |
StatusCode.CERT_FINGERPRINT_ERROR | 6003 | Certificate fingerprint verification: Incorrect signing certificate fingerprint. |
|
StatusCode.PERMISSION_NOT_EXIST | 6004 | API authentication: Permission not granted from HUAWEI Developers. |
|
StatusCode.PERMISSION_NOT_AUTHORIZED | 6005 | API authentication: Permission not granted. | Verify that the current app has been created and has applied for related services. |
StatusCode.PERMISSION_EXPIRED | 6006 | API authentication: Permission expired. | Verify that the current app has been created and has applied for related services. |
ErrorCode.FRAMEWORK_UPDATING | 1200 | The framework is being upgraded, and the AMS and PMS services are not ready. |
|
ErrorCode.FRAMEWORK_NOT_READY | 1201 | The AMS and PMS services are not ready. |
|
ErrorCode.PARAMETER_INVALID | 1210 | Invalid parameter. | Verify that the input parameter is correct. |
ErrorCode.SESSION_INVALID | 1211 | Invalid session. | Verify that the app ID of the caller is correct. |
ErrorCode.KIT_NEED_UPDATE | 1212 | The kit needs to be upgraded. |
|
ERRORCODE.KIT_BREAKER | 1213 | The kit needs to be in the circuit breaker state. | Take measures to rectify this error that may cause the failure in calling the kit. |
ERRORCODE.FRAMEWORK_BREAKER | 1214 | The framework needs to be in the circuit breaker state. | Take measures to rectify this error that may cause the failure in calling the framework. |
ERRORCODE.MEMORY_OVER_LIMIT | 1215 | The memory usage exceeds the threshold. |
|
ERRORCODE.AUTH_FAILED | 1217 | Kit authentication failed. |
|
ERRORCODE.RUNTIME_AMS | 1230 | An error occurs during AMS running. | Perform the related operations. |
ERRORCODE.RUNTIME_PMS | 1240 | An error occurs during PMS running. | Perform the related operations. |
ERRORCODE.RUNTIME_KAC | 1250 | An error occurs during KAC running. | Perform the related operations. |
ERRORCODE.RUNTIME_OTHER | 1260 | Other types of errors. | Perform the related operations. |
Result Code | Description | Solution |
|---|---|---|
-5 | Failed to obtain the token. | Check the obfuscation configuration file. For details, please refer to Configuring Obfuscation Scripts. |
907122030 | No token. | Ensure that the input parameters are correct for calling the method for obtaining a token. |
907122031 | The network is unavailable. | Verify that the network is available. |
907122032 | The token has expired. | |
907122034 | The number of topics to be subscribed to exceeds the threshold (2000). | Delete unnecessary topics. For details, please refer to unsubscribe(String topic). |
907122035 | Failed to subscribe to the topic. | Try again later or contact Huawei technical support. |
907122036 | Push Kit is not enabled. | For details, please refer to Preparations to check whether the related service is enabled for the app. |
907122037 | Failed to obtain the token. | Try again later or contact Huawei technical support. |
907122038 | No storage location is selected for the app, or the storage location is invalid. | Set a correct data processing location for your app. For details, please refer to Setting the Default Data Processing Location. |
907122041 | The message body size exceeds the maximum (1 KB). | Ensure that the size of the message body does not exceed the maximum. |
907122042 | The message contains invalid parameters. | Ensure that the parameters in the message body are valid. |
907122043 | This message is discarded because the number of sent messages reaches the upper limit. | Reduce the number of messages to be sent. |
907122044 | Before being sent to your server, the message is discarded due to expiration. | Reset the TTL. The maximum value is 1,296,000 seconds (15 days). |
907122045 | Unknown error. | An internal system exception occurs, and you cannot handle it by yourself. Please contact Huawei technical support. |
907122047 | Common Push Kit error. | This error may occur in many scenarios. Contact Huawei technical support to locate it. |
907122048 | HMS Core (APK) cannot connect to Push Kit. | Contact Huawei technical support. |
907122049 | The EMUI version is too early and the capability is unavailable. | Update the HMS Core (APK) version to the latest one. If the error persists, use a device running EMUI of a later version. |
The operation cannot be performed in the main thread. | Create a thread and call a specific method in the new thread. | |
907122051 | Failed to authenticate the device certificate. | Contact Huawei technical support. |
907122052 | Failed to bind the service. | Try again later or contact Huawei technical support. |
907122053 | Failed to obtain the token. Cross-location application is not allowed. | Ensure that the token is not obtained across data processing locations. |
907122054 | The HMS Core Push SDK is being automatically initialized. | Try again later. |
907122055 | The system is busy. | Try again later. |
907122056 | Failed to send an uplink message. | Send the uplink message again later. |
907122057 | Incorrect input parameter for constructing an object for sending uplink messages. | Ensure that the input parameter for RemoteMessage.Builder to construct an object is push.hcm.upstream. |
907122058 | The message is discarded because the number of cached uplink messages to be sent by the app exceeds the threshold (20). | Try again later. |
907122059 | The uplink message sent by the app is cached due to a cause such as network unavailability. | Try again later. |
907122060 | Your server is offline. | Try again later. |
907122061 | Flow control is performed because the frequency for the app to send uplink messages is too high. | Reduce the frequency of sending uplink messages. |
907122064 | The agcconnect-services.json file does not contain the projectId field. | Sign in to AppGallery Connect, select My projects, find your project in the project list, choose Project settings, and re-download the agcconnect-services.json file. |
907122065 | Failed to obtain a token for the apps on smart watches, VRs, or routers. | Apps on third-party smart watches, VRs, and routers are not supported. |
907122066 | Failed to obtain HUAWEI ID information. |
|
907122067 | The number of added user-app relationships exceeds the maximum (10). | Delete the relationships that are no longer used. For details, please refer to deleteProfile(String profileId). |
907122101 | Failed to obtain the token of the third-party push service. | Obtain the token again. |
907122102 | Failed to delete the token of the third-party push service. | Delete the token again. |
907122103 | An internal error occurs in the third-party push SDK. | Contact Huawei technical support. |
907122104 | Failed to obtain the domain name. | Try again later or contact Huawei technical support. |
907122105 | Failed to construct the JSON message body for obtaining a token. | Try again later or contact Huawei technical support. |
If the error persists, contact Huawei technical support. Huawei will get back to you as soon as possible.