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 Message**
10
11The location service is unavailable.
12
13**Description**
14
15This error code is reported if the location service is unavailable and relevant APIs cannot be called.
16
17**Possible Cause**
18
191. The location service fails to be started, leading to a communication failure between the application and the location service.
20
212. The GNSS chip fails to be initialized, leading to a GNSS positioning failure.
22
233. The network positioning service is abnormal, leading to a network positioning failure.
24
25**Procedure**
26
27Stop calling the API.
28
29## 3301100 Positioning Failed Due to Location Service Switch Turning-off
30
31**Error Message**
32
33The location switch is off.
34
35**Description**
36
37This error code is reported if positioning fails because the location service switch is turned off.
38
39**Possible Cause**
40
41The location service switch is turned off, which makes basic functions such as continuous positioning and immediate positioning unavailable.
42
43**Procedure**
44
45Display a prompt asking for enabling the location service.
46
47## 3301200 Failed to Obtain the Positioning Result
48
49**Error Message**
50
51Failed to obtain the geographical location.
52
53**Description**
54
55This error code is reported if the location service fails, leading to a failure to obtain the positioning result.
56
57**Possible Cause**
58
591. Positioning times 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**Procedure**
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 Message**
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 Cause**
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**Procedure**
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 Message**
107
108Geocoding query failed.
109
110**Description**
111
112This error code is reported if the query during geocoding has failed.
113
114**Possible Cause**
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**Procedure**
120
121Check the request parameters or network status and try again.
122
123## 3301500 Area Information Query Failed
124
125**Error Message**
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 Cause**
134
135The correct area information is not found.
136
137**Procedure**
138
139Stop calling the API for querying the country code.
140
141## 3301600 Geofence Operation Failed
142
143**Error Message**
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 Cause**
152
1531. The GNSS chip does not support the geofence function.
154
1552. The bottom-layer service logic is abnormal.
156
157**Procedure**
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 Message**
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 Cause**
172
173The number of geofences has reached the maximum.
174
175**Procedure**
176
177Delete unnecessary geofences before adding new ones.
178
179## 3301602 Failed to Delete a Geofence Due to an Incorrect ID
180
181**Error Message**
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 Cause**
190
191The geofence ID passed to the geofence deletion API is incorrect.
192
193**Procedure**
194
195Pass a correct geofence ID to the geofence deletion API.
196
197## 3301700 No Response to the Request
198
199**Error Message**
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 Cause**
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**Procedure**
216
217Stop calling relevant APIs.
218
219## 3301800 Failed to Start Wi-Fi or Bluetooth Scanning
220
221**Error Message**
222
223Failed to start Wi-Fi or Bluetooth scanning.
224
225**Description**
226
227This error code is reported if Wi-Fi or Bluetooth scanning fails to start.
228
229**Possible Cause**
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 disabled.
236
237**Procedure**
238
239Disable and then enable Wi-Fi or Bluetooth.
240
241## 3301900 Failed to Obtain the MAC Address of the Wi-Fi Hotspot
242
243**Error Message**
244
245Failed to obtain the hotpot MAC address because the Wi-Fi is not connected.
246
247**Description**
248
249This error code is reported if the attempt to obtain the MAC address of the Wi-Fi hotspot or router fails because the device is not connected to the Wi-Fi hotspot or router.
250
251**Possible Cause**
252
2531. Wi-Fi is disabled.
254
2552. Wi-Fi is enabled, but the device is not connected to a Wi-Fi hotspot or router.
256
257**Procedure**
258
2591. Enable Wi-Fi.
260
2612. Connect to a router or Wi-Fi hotspot.
262