1e41f4b71Sopenharmony_ci# AVSession Management Error Codes
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci> **NOTE**
4e41f4b71Sopenharmony_ci>
5e41f4b71Sopenharmony_ci> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md).
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ci## 6600101 Session Service Exception
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci**Error Message**
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ciSession service exception.
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci**Description**
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ciThe session service is abnormal, and the application cannot obtain a response from the session service. For example, the session service is not running or the communication with the session service fails.
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci**Possible Causes**
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ciThe session service is killed during session restart.
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci**Solution**
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci1. The system retries the operation automatically. If the error persists for 3 seconds or more, stop the operation on the session or controller.
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci2. Destroy the current session or session controller and re-create it. If the re-creation fails, stop the operation on the session.
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci## 6600102 Session Does Not Exist
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci**Error Message**
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ciThe session does not exist.
32e41f4b71Sopenharmony_ci
33e41f4b71Sopenharmony_ci**Description**
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_ciParameters are set for or commands are sent to the session that does not exist.
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ci**Possible Causes**
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ciThe session has been destroyed, and no session record exists on the server.
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ci**Solution**
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ci1. If the error occurs on the application, re-create the session. If the error occurs on Media Controller, stop sending query or control commands to the session.
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ci2. If the error occurs on the session service, query the current session record and pass the correct session ID when creating the controller.
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ci## 6600103 Session Controller Does Not Exist
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_ci**Error Message**
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ciThe session controller does not exist.
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ci**Description**
54e41f4b71Sopenharmony_ci
55e41f4b71Sopenharmony_ciA control command or an event is sent to the controller that does not exist.
56e41f4b71Sopenharmony_ci
57e41f4b71Sopenharmony_ci**Possible Causes**
58e41f4b71Sopenharmony_ci
59e41f4b71Sopenharmony_ciThe controller has been destroyed.
60e41f4b71Sopenharmony_ci
61e41f4b71Sopenharmony_ci**Solution**
62e41f4b71Sopenharmony_ci
63e41f4b71Sopenharmony_ciQuery the session record and create the corresponding controller.
64e41f4b71Sopenharmony_ci
65e41f4b71Sopenharmony_ci## 6600104 Remote Session Connection Failure
66e41f4b71Sopenharmony_ci
67e41f4b71Sopenharmony_ci**Error Message**
68e41f4b71Sopenharmony_ci
69e41f4b71Sopenharmony_ciThe remote session connection failed.
70e41f4b71Sopenharmony_ci
71e41f4b71Sopenharmony_ci**Description**
72e41f4b71Sopenharmony_ci
73e41f4b71Sopenharmony_ciThe communication between the local session and the remote session fails.
74e41f4b71Sopenharmony_ci
75e41f4b71Sopenharmony_ci**Possible Causes**
76e41f4b71Sopenharmony_ci
77e41f4b71Sopenharmony_ciThe communication between devices is interrupted.
78e41f4b71Sopenharmony_ci
79e41f4b71Sopenharmony_ci**Solution**
80e41f4b71Sopenharmony_ci
81e41f4b71Sopenharmony_ciStop sending control commands to the session. Subscribe to output device changes, and resume the sending when the output device is changed.
82e41f4b71Sopenharmony_ci
83e41f4b71Sopenharmony_ci## 6600105 Invalid Session Command
84e41f4b71Sopenharmony_ci
85e41f4b71Sopenharmony_ci**Error Message**
86e41f4b71Sopenharmony_ci
87e41f4b71Sopenharmony_ciInvalid session command.
88e41f4b71Sopenharmony_ci
89e41f4b71Sopenharmony_ci**Description**
90e41f4b71Sopenharmony_ci
91e41f4b71Sopenharmony_ciThe control command or event sent to the session is not supported.
92e41f4b71Sopenharmony_ci
93e41f4b71Sopenharmony_ci**Possible Causes**
94e41f4b71Sopenharmony_ci
95e41f4b71Sopenharmony_ciThe session does not support this command.
96e41f4b71Sopenharmony_ci
97e41f4b71Sopenharmony_ci**Solution**
98e41f4b71Sopenharmony_ci
99e41f4b71Sopenharmony_ciStop sending the command or event. Query the commands supported by the session, and send a command supported.
100e41f4b71Sopenharmony_ci
101e41f4b71Sopenharmony_ci## 6600106 Session Not Activated
102e41f4b71Sopenharmony_ci
103e41f4b71Sopenharmony_ci**Error Message**
104e41f4b71Sopenharmony_ci
105e41f4b71Sopenharmony_ciThe session is not activated.
106e41f4b71Sopenharmony_ci
107e41f4b71Sopenharmony_ci**Description**
108e41f4b71Sopenharmony_ci
109e41f4b71Sopenharmony_ciA control command or event is sent to the session that is not activated.
110e41f4b71Sopenharmony_ci
111e41f4b71Sopenharmony_ci**Possible Causes**
112e41f4b71Sopenharmony_ci
113e41f4b71Sopenharmony_ciThe session is in the inactive state.
114e41f4b71Sopenharmony_ci
115e41f4b71Sopenharmony_ci**Solution**
116e41f4b71Sopenharmony_ci
117e41f4b71Sopenharmony_ciStop sending the command or event. Subscribe to the session activation status, and resume the sending when the session is activated.
118e41f4b71Sopenharmony_ci
119e41f4b71Sopenharmony_ci## 6600107 Too Many Commands or Events
120e41f4b71Sopenharmony_ci
121e41f4b71Sopenharmony_ci**Error Message**
122e41f4b71Sopenharmony_ci
123e41f4b71Sopenharmony_ciToo many commands or events.
124e41f4b71Sopenharmony_ci
125e41f4b71Sopenharmony_ci**Description**
126e41f4b71Sopenharmony_ci
127e41f4b71Sopenharmony_ciThe session client sends too many messages or commands to the server in a period of time, causing the server to be overloaded.
128e41f4b71Sopenharmony_ci
129e41f4b71Sopenharmony_ci**Possible Causes**
130e41f4b71Sopenharmony_ci
131e41f4b71Sopenharmony_ciThe server is overloaded with messages or events.
132e41f4b71Sopenharmony_ci
133e41f4b71Sopenharmony_ci**Solution**
134e41f4b71Sopenharmony_ci
135e41f4b71Sopenharmony_ciControl the frequency of sending commands or events.
136e41f4b71Sopenharmony_ci
137e41f4b71Sopenharmony_ci## 6600108 Device Connection Failure
138e41f4b71Sopenharmony_ci
139e41f4b71Sopenharmony_ci**Error Message**
140e41f4b71Sopenharmony_ci
141e41f4b71Sopenharmony_ciDevice connection failed.
142e41f4b71Sopenharmony_ci
143e41f4b71Sopenharmony_ci**Description**
144e41f4b71Sopenharmony_ci
145e41f4b71Sopenharmony_ciConnection to the device fails.
146e41f4b71Sopenharmony_ci
147e41f4b71Sopenharmony_ci**Possible Causes**
148e41f4b71Sopenharmony_ci
149e41f4b71Sopenharmony_ciThe device connection logic is abnormal or the device status is abnormal.
150e41f4b71Sopenharmony_ci
151e41f4b71Sopenharmony_ci**Solution**
152e41f4b71Sopenharmony_ci
153e41f4b71Sopenharmony_ciRefresh the device list and check whether the device is offline.
154e41f4b71Sopenharmony_ci
155e41f4b71Sopenharmony_ci## 6600109 Remote Session Does Not Exist
156e41f4b71Sopenharmony_ci
157e41f4b71Sopenharmony_ci**Error Message**
158e41f4b71Sopenharmony_ci
159e41f4b71Sopenharmony_ciThe remote connection is not established.
160e41f4b71Sopenharmony_ci
161e41f4b71Sopenharmony_ci**Description**
162e41f4b71Sopenharmony_ci
163e41f4b71Sopenharmony_ciThe remote session does not exist, and the related API calls fail.
164e41f4b71Sopenharmony_ci
165e41f4b71Sopenharmony_ci**Possible Causes**
166e41f4b71Sopenharmony_ci
167e41f4b71Sopenharmony_ciThe remote session has been destroyed or has not been created.
168e41f4b71Sopenharmony_ci
169e41f4b71Sopenharmony_ci**Solution**
170e41f4b71Sopenharmony_ci
171e41f4b71Sopenharmony_ciQuery the session status again to determine whether the remote session exists.
172