目录

HMS Core SDK Framework Result Codes

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.

  1. Verify that your phone has Internet access.
  2. Verify that the current app has been created and has applied for related services.

ErrorCode.SCOPE_LIST_EMPTY

907135701

Scope of OpenGW is not configured.

  1. Verify that your phone has Internet access.
  2. Verify that the current app has been created and has applied for related services.

ErrorCode.CERT_FINGERPRINT_EMPTY

907135702

No certificate fingerprint is configured for OpenGW.

  1. Verify that your phone has Internet access.
  2. Verify that the certificate fingerprint is correctly configured when you apply for related services. Sign in to AppGallery Connect, click My projects, and select a required project. On the displayed page, select the app, go to Project settings > General information, and check whether the value in SHA-256 certificate fingerprint is the same as that generated in the signing certificate. If not, change the value.

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.

  1. Verify that your phone has Internet access.
  2. Try to connect again.

ErrorCode.EXECUTE_TIMEOUT

907135004

AIDL call timed out.

  1. Verify that your phone has Internet access.
  2. Try to connect again.

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.

  1. Verify that your phone has Internet access.
  2. Verify that you can access https://api.cloud.huawei.com/rest.php?nsp_svc=nsp.scope.app.get&nsp_fmt=json&type=2&appid=***. (Replace *** with your app ID.)

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.

  1. Verify that the certificate fingerprint is correctly configured when you apply for related services.

    Open the APK file of an app, extract the META-INF directory from the file, obtain the CERT.RSA file in the directory, and run the keytool -printcert -file META-INF/CERT.RSA command to record the signing certificate information.

  2. Sign in to AppGallery Connect, click My projects, and select a required project. On the displayed page, select the app, go to Project settings > General information, and check whether the value in SHA-256 certificate fingerprint is the same as that in step 1.

StatusCode.PERMISSION_NOT_EXIST

6004

API authentication: Permission not granted from HUAWEI Developers.

  1. Verify that the current app has been created and has applied for related services.
  2. Clear the HMS Core (APK) cache and try again.

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.

  1. Verify that the framework upgrade is complete and the AMS and PMS services are ready.
  2. Send the request again.

ErrorCode.FRAMEWORK_NOT_READY

1201

The AMS and PMS services are not ready.

  1. Verify that the AMS and PMS services are ready.
  2. Send the request again.

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.

  1. Verify that the upgrade is complete.
  2. Verify that the kit of a later version is installed on HUAWEI AppGallery or local installation directory.
  3. Send the request again.

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.

  1. Verify that the memory usage exceeds the threshold.
  2. Release the memory and try again.

ERRORCODE.AUTH_FAILED

1217

Kit authentication failed.

  1. Verify that the current kit has been created and has applied for related services.
  2. Verify that the certificate fingerprint is correctly configured when you apply for related services.

    Open the APK file of a kit, extract the META-INF directory from the file, obtain the CERT.RSA file in the directory, and run the keytool -printcert -file META-INF/CERT.RSA command to record the signing certificate information.

  3. Sign in to AppGallery Connect, click My projects, and select a required project. On the displayed page, select the app, go to Project settings > General information, and check whether the value in SHA-256 certificate fingerprint is the same as that in step 2.

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.

If the error persists, go to Support > Customer Service > Submit ticket online, select the relevant topic, and submit your ticket. Huawei will get back to you as soon as possible.