This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
The location switch is off.
Description
This error code is reported if positioning fails because the location service switch is turned off.
Possible Cause
The location service switch is turned off, which makes basic functions such as continuous positioning and immediate positioning unavailable.
Procedure
Display a prompt asking for enabling the location service.
Error Message
Failed to obtain the geographical location.
Description
This error code is reported if the location service fails, leading to a failure to obtain the positioning result.
Possible Cause
Positioning times out because of weak GNSS signals.
Positioning times out because the network positioning service is abnormal.
Positioning times out because the positioning result does not meet the requirement of maxAccuracy.
The application fails to obtain the previous location because the system does not cache the location information.
The system time is incorrectly set.
Procedure
Move to an open area and try again.
Check the device for Internet or Wi-Fi connectivity and an installed SIM card.
Check whether the maxAccuracy field in the location request is properly set.
Use getCurrentLocation to obtain the real-time location if no location information is cached in the system.
Enable automatic setting on the Time & Date page.
Error Message
Reverse geocoding query failed.
Description
This error code is reported if the query during reverse geocoding has failed.
Possible Cause
Network connection is poor, which makes the request fail to be sent from the device or the result fail to be returned from the cloud to the device.
The x86 emulator does not support the reverse geocoding function. A reverse geocoding query fails if the x86 emulator is used for debugging.
Procedure
For the network problem, try the reverse geocoding query again after the network is resumed.
For the x86 emulator problem, try the reverse geocoding query again on a real device.
Error Message
Geocoding query failed.
Description
This error code is reported if the query during geocoding has failed.
Possible Cause
A certain request parameter is incorrect, or no result can be found based on the parameter.
Procedure
Check the request parameters or network status and try again.
Error Message
Failed to query the area information.
Description
This error code is reported if the query of the area information (including the country code) has failed.
Possible Cause
The correct area information is not found.
Procedure
Stop calling the API for querying the country code.
Error Message
Failed to operate the geofence.
Description
This error code is reported if a geofence operation, for example, adding, deleting, pausing, or resuming a geofence, has failed.
Possible Cause
The GNSS chip does not support the geofence function.
The bottom-layer service logic is abnormal.
Procedure
Stop calling the geofence operation API.
Error Message
The number of geofences exceeds the maximum.
Description
This error code is reported if the attempt to add a geofence fails because the number of geofences exceeds the maximum.
Possible Cause
The number of geofences has reached the maximum.
Procedure
Delete unnecessary geofences before adding new ones.
Error Message
Failed to delete a geofence due to an incorrect ID.
Description
The ID of the geofence to be deleted is incorrect.
Possible Cause
The geofence ID passed to the geofence deletion API is incorrect.
Procedure
Pass a correct geofence ID to the geofence deletion API.
Error Message
No response to the request.
Description
This error code is reported if no response is received for an asynchronous request that requires a user to click a button for confirmation or requires a response from the GNSS chip or network server.
Possible Cause
The user does not click a button as required for confirmation.
The GNSS chip does not respond.
The network server does not respond.
Procedure
Stop calling relevant APIs.
Error Message
Failed to start WiFi or Bluetooth scanning.
Description
This error code is reported if Wi-Fi or Bluetooth scanning fails to start.
Possible Cause
The Wi-Fi or Bluetooth service incurs an internal error.
Power consumption control is activated because of low battery level.
Wi-Fi or Bluetooth is not enabled.
Procedure
Turn off Wi-Fi or Bluetooth, and then turn it on again.