1# Media 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## 5400101 Memory Allocation Failed
8
9**Error Message**
10
11No memory.
12
13**Description**
14
15Failed to allocate memory.
16
17**Possible Causes**
18
191. The number of instances exceeds 16.
202. The new or malloc process fails, causing a null pointer.
21
22**Solution**
23
24Destroy this instance and re-create it. If the re-creation fails, stop related operations.
25
26## 5400102 Unsupported Operation
27
28**Error Message**
29
30Operation not allowed.
31
32**Description**
33
34This operation is not allowed.
35
36**Possible Causes**
37
38This operation is not allowed in the current state.
39
40**Solution**
41
42Switch the instance to the correct state and perform the operation.
43
44## 5400103 I/O Error
45
46**Error Message**
47
48I/O error.
49
50**Description**
51
52An I/O error occurs.
53
54**Possible Causes**
55
56The data interaction between the media and other modules (graphics, audio, network, HDI, and camera) is abnormal.
57
58**Solution**
59
60Ensure that the network is normal, destroy this instance, and re-create it. If the re-creation fails, stop related operations.
61
62## 5400104 Operation Timeout
63
64**Error Message**
65
66Operation timeout.
67
68**Description**
69
70The operation timed out.
71
72**Possible Causes**
73
741. The network connection times out. (The default network timeout period is 15 seconds, and the timer starts after the buffered event is reported.)
752. Accessing other modules times out.
76
77**Solution**
78
791. Check whether the network is normal.
802. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
81
82## 5400105 Play Service Dead
83
84**Error Message**
85
86Service died.
87
88**Description**
89
90The playback service is dead.
91
92**Possible Causes**
93
94The playback service is dead.
95
96**Solution**
97
98Destroy this instance and re-create it. If the re-creation fails, stop related operations.
99
100## 5400106 Format Not Supported
101
102**Error Message**
103
104Unsupported format.
105
106**Description**
107
108The format is not supported.
109
110**Possible Causes**
111
112The file format is not supported.
113
114**Solution**
115
116Use a supported format.
117
118For details about the supported formats, see [Media Kit Overview](../../media/media/media-kit-intro.md).
119
120## 5400107 Audio Focus Conflict
121
122**Error Message**
123
124Audio interrupted.
125
126**Description**
127
128Recording fails due to audio focus conflicts.
129
130**Possible Causes**
131
132Another process occupies the audio focus.
133
134**Solution**
135
136Destroy the current instance and check whether another process is recording. If you can stop the other process, you can create the current instance again.
137
138## 5411001 Failed to Parse or Connect to the Server Address
139
140**Error Message**
141
142Can not find host.
143
144**Description**
145
146An error occurred when parsing or connecting to the server address.
147
148**Possible Causes**
149
1501. The server address is incorrect.
1512. The server address fails to be parsed.
152
153**Solution**
154
155Try another server address.
156
157## 5411002 Network Connection Timeout
158
159**Error Message**
160
161Connection time out.
162
163**Description**
164
165Network connection times out.
166
167**Possible Causes**
168
169The network is abnormal.
170
171**Solution**
172
1731. Check whether the network is normal.
1742. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
175
176## 5411003 Data or Link Exception Caused by Network Exceptions
177
178**Error Message**
179
180NetWork abnormal.
181
182**Description**
183
184Data or links are abnormal due to network exceptions.
185
186**Possible Causes**
187
188The network is abnormal.
189
190**Solution**
191
192Destroy this instance and re-create it. If the re-creation fails, stop related operations.
193
194## 5411004 Network Disabled
195
196**Error Message**
197
198NetWork unavailable.
199
200**Description**
201
202The network is unavailable.
203
204**Possible Causes**
205
206The network is disabled.
207
208**Solution**
209
2101. Check whether the network is disabled.
2112. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
212
213## 5411005 Access Denied
214
215**Error Message**
216
217No permission.
218
219**Description**
220
221No access permission.
222
223**Possible Causes**
224
225No access permission.
226
227**Solution**
228
2291. Check whether you have the access permission.
2302. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
231
232## 5411006 Client Request Parameter Is Incorrect or Exceeds the Processing Capability
233
234**Error Message**
235
236Network access denied.
237
238**Description**
239
240The client request parameter is incorrect or exceeds the processing capability.
241
242**Possible Causes**
243
244The client request parameter is incorrect or exceeds the processing capability.
245
246**Solution**
247
2481. Correct the request parameter.
2492. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
250
251## 5411007 No Resource Available
252
253**Error Message**
254
255Cannot find available network resources.
256
257**Description**
258
259No network resource is available.
260
261**Possible Causes**
262
263The server address is abnormal.
264
265**Solution**
266
2671. Check whether the server address is correct.
2682. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
269
270## 5411008 Server Fails to Verify the Client Certificate
271
272**Error Message**
273
274SSL client cert needed.
275
276**Description**
277
278The SSL client is untrusted, and the server fails to verify the client certificate.
279
280**Possible Causes**
281
282The certificate is not carried, is invalid, or has expired.
283
284**Solution**
285
2861. Check whether the SSL certificate is normal.
2872. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
288
289## 5411009 SSL Connection Failed
290
291**Error Message**
292
293SSL connection failed.
294
295**Description**
296
297The SSL connection fails.
298
299**Possible Causes**
300
301The SSL connection fails.
302
303**Solution**
304
3051. Check whether the SSL connection has expired.
3062. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
307
308## 5411010 Client Fails to Verify the Server Certificate
309
310**Error Message**
311
312SSL server cert needed.
313
314**Description**
315
316The SSL server is untrusted, and the client fails to verify the server certificate.
317
318**Possible Causes**
319
320The certificate is not carried, is invalid, or has expired.
321
322**Solution**
323
3241. Check whether the SSL certificate is normal.
3252. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
326
327## 5411011 Unsupported Request Due to Network Protocol Errors
328
329**Error Message**
330
331Unsupportted request.
332
333**Description**
334
335The client request parameter is incorrect or exceeds the processing capability.
336
337**Possible Causes**
338
339The client request parameter is incorrect or exceeds the processing capability.
340
341**Solution**
342
3431. Check whether the client request parameter is correct.
3442. Destroy this instance and re-create it. If the re-creation fails, stop related operations.
345