1# Location Kit Error Codes 2 3> **NOTE** 4> 5> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md). 6 7## 3301000 Location Service Unavailable 8 9**Error Information** 10 11The location service is unavailable. 12 13**Description** 14 15This error code is reported when the location service is unavailable and relevant APIs cannot be called. 16 17**Possible Causes** 18 191. The location service fails to be started. As a result, the communication between the application and the location service fails, and the location service is unavailable. 20 212. The GNSS chip fails to be initialized, and thus the GNSS positioning function becomes invalid. 22 233. The network positioning service is abnormal, and thus the network positioning function becomes invalid. 24 25**Solution** 26 27Stop calling the API. 28 29## 3301100 Location Service Unavailable Because of Switch Toggled Off 30 31**Error Information** 32 33The location switch is off. 34 35**Description** 36 37This error code is reported when the location service is unavailable because the service switch is toggled off. 38 39**Possible Causes** 40 41The location service switch is toggled off, which makes basic functions such as continuous positioning and immediate positioning unavailable. 42 43**Solution** 44 45Display a prompt asking for enabling the location service. 46 47## 3301200 Failed to Obtain the Positioning Result 48 49**Error Information** 50 51Failed to obtain the geographical location. 52 53**Description** 54 55This error code is reported if the location service has failed, leading to a failure to obtain the positioning result. 56 57**Possible Causes** 58 591. Positioning timed out because of weak GNSS signals. 60 612. Positioning times out because the network positioning service is abnormal. 62 633. Positioning times out because the positioning result does not meet the requirement of **maxAccuracy**. 64 654. The application fails to obtain the previous location because the system does not cache the location information. 66 675. The system time is incorrectly set. 68 69**Solution** 70 711. Move to an open area and try again. 72 732. Check the device for Internet or Wi-Fi connectivity and an installed SIM card. 74 753. Check whether the **maxAccuracy** field in the location request is properly set. 76 774. Use **getCurrentLocation** to obtain the real-time location if no location information is cached in the system. 78 795. Enable automatic setting on the **Time & Date** page. 80 81 82## 3301300 Query Failed During Reverse Geocoding 83 84**Error Information** 85 86Reverse geocoding query failed. 87 88**Description** 89 90This error code is reported if the query during reverse geocoding has failed. 91 92**Possible Causes** 93 94- 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. 95 96- The x86 emulator does not support the reverse geocoding function. A reverse geocoding query fails if the x86 emulator is used for debugging. 97 98**Solution** 99 100- For the network problem, try the reverse geocoding query again after the network is resumed. 101 102- For the x86 emulator problem, try the reverse geocoding query again on a real device. 103 104## 3301400 Query Failed During Geocoding 105 106**Error Information** 107 108Geocoding query failed. 109 110**Description** 111 112This error code is reported if the query during geocoding has failed. 113 114**Possible Causes** 115 1161. A certain request parameter is incorrect, or no result can be found based on the parameter.<br> 1172. 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. 118 119**Solution** 120 121Check the request parameters or network status and try again. 122 123## 3301500 Area Information Query Failed 124 125**Error Information** 126 127Failed to query the area information. 128 129**Description** 130 131This error code is reported if the query of the area information (including the country code) has failed. 132 133**Possible Causes** 134 135The correct area information is not found. 136 137**Solution** 138 139Stop calling the API for querying the country code. 140 141## 3301600 Geofence Operation Failed 142 143**Error Information** 144 145Failed to operate the geofence. 146 147**Description** 148 149This error code is reported if a geofence operation, for example, adding, deleting, pausing, or resuming a geofence, has failed. 150 151**Possible Causes** 152 1531. The GNSS chip does not support the geofence function. 154 1552. The bottom-layer service logic is abnormal. 156 157**Solution** 158 159Stop calling the geofence operation API. 160 161## 3301601 Failed to Add a Geofence Due to a Limit on the Maximum Number 162 163**Error Information** 164 165The number of geofences exceeds the maximum. 166 167**Description** 168 169This error code is reported if the attempt to add a geofence fails because the number of geofences exceeds the maximum. 170 171**Possible Causes** 172 173The number of geofences has reached the maximum. 174 175**Solution** 176 177Delete unnecessary geofences before adding new ones. 178 179## 3301602 Failed to Delete a Geofence Due to an Incorrect ID 180 181**Error Information** 182 183Failed to delete a geofence due to an incorrect ID. 184 185**Description** 186 187The ID of the geofence to be deleted is incorrect. 188 189**Possible Causes** 190 191The geofence ID passed to the geofence deletion API is incorrect. 192 193**Solution** 194 195Pass a correct geofence ID to the geofence deletion API. 196 197## 3301700 No Response to the Request 198 199**Error Information** 200 201No response to the request. 202 203**Description** 204 205This 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. 206 207**Possible Causes** 208 2091. The user does not click a button as required for confirmation. 210 2112. The GNSS chip does not respond. 212 2133. The network server does not respond. 214 215**Solution** 216 217Stop calling relevant APIs. 218 219## 3301800 Failed to Start Wi-Fi or Bluetooth Scanning 220 221**Error Information** 222 223Failed to start WiFi or Bluetooth scanning. 224 225**Description** 226 227This error code is reported if Wi-Fi or Bluetooth scanning fails to start. 228 229**Possible Causes** 230 2311. The Wi-Fi or Bluetooth service incurs an internal error. 232 2332. Power consumption control is activated because of low battery level. 234 2353. Wi-Fi or Bluetooth is not enabled. 236 237**Solution** 238 239Turn off Wi-Fi or Bluetooth, and then turn it on again. 240