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

Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.

HMS Core ReferencesCommonHMS SDK Framework Error

HMS SDK Framework Error

ConstantResult CodeDescriptionSuggestion

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.

Contact Huawei technical support.

ErrorCode.NOT_IN_SERVICE

907135005

This service is unavailable in this region.

Check whether the API is supported in the region where the user is located.

ErrorCode.SESSION_INVALID

907135006

HMS SDK internal error. The AIDL connection session is invalid.

Contact Huawei technical support. This problem rarely occurs.

ErrorCode.GET_SCOPE_ERROR

907135700

Failed to call the gateway to query the app scope.

1. Check whether your phone has Internet access.2. Check whether the current app has been created and has applied for related services. If the fault persists, contact Huawei technical support.

ErrorCode.SCOPE_LIST_EMPTY

907135701

The scope of OpenGW is not configured.

1. Check whether your phone has Internet access.2. Check whether the current app has been created and has applied for related services. If the fault persists, contact Huawei technical support.

ErrorCode.CERT_FINGERPRINT_EMPTY

907135702

No fingerprint certificate is configured for OpenGW.

1. Check whether your phone has Internet access.

2. Check whether the fingerprint certificate is correctly configured when you apply for related services. Sign in to AppGallery Connect, click My Apps. On the Application page, ,go to Development > Overview  > App information, check whether SHA-256 certificate fingerprint is consistent with the fingerprint certificate generated based on the signature file. If not, modify the information.

3. If the fault persists, contact Huawei technical support.

ErrorCode.PERMISSION_LIST_EMPTY

907135703

The permission of OpenGW is not configured.

Check whether 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_INVALID907135003Invalid apiclient object.

1. Check whether your phone has Internet connection.

2. Try to connect again.

ErrorCode.EXECUTE_TIMEOUT907135004AIDL call timed out.

1. Check whether your phone has Internet connection.

2. Try to connect again

ErrorCode.GET_SCOPE_NETWORK_ERROR907135704Failed to call the gateway to query the app scope due to an exception returned by the server.

1. Check whether your phone has Internet connection.

2. Check whether 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.

Check whether the current app has been created and has applied for related services. If the fault persists, contact Huawei technical support.

StatusCode.CERT_FINGERPRINT_ERROR

6003

Certificate fingerprint verification: Incorrect signature certificate fingerprint.

1. Check whether the fingerprint certificate is correctly configured when you apply for related services.Open the APK file of an app, extract the META-INF folder from the file, obtain the CERT.RSA file in the folder, and run the keytool -printcert -file META-INF/CERT.RSA command to print the signature certificate information.

2. Sign in to AppGallery Connect, click My Apps. On the Application page, go to Development > Overview  > App information, check the value of SHA-256 certificate fingerprint. Check whether the fingerprints on both sides are consistent.

3. If the fault persists, contact Huawei technical support.

StatusCode.PERMISSION_NOT_EXIST

6004

API authentication: Permission not granted from HUAWEI Developer.

1. Check whether the current app has been created and has applied for related services.

2. Clear the HMS cache and try again.

3. If the fault persists, contact Huawei technical support.

StatusCode.PERMISSION_NOT_AUTHORIZED

6005

API authentication: Permission not granted.

Check whether the current app has been created and has applied for related services. If the fault persists, contact Huawei technical support.

StatusCode.PERMISSION_EXPIRED

6006

API authentication: Permission expired.

Check whether the current app has been created and has applied for related services. If the fault persists, contact Huawei technical support.


This page may contain third-party content. For details, click here.
Search in References
Enter a keyword.