1005: Audio Device Module: A general error occurs in the Audio Device Module (the reason is not classified specifically). Check if the audio device is used by another app, or try rejoining the channel.
1022: Audio Device Module: An error occurs in initializing the loopback device.
1008: Audio Device Module: An error occurs in initializing the playback device.
1011: Audio Device Module: An error occurs in initializing the recording device.
1006: Audio Device Module: An error occurs in using the Java resources.
1027: Audio Device Module: No recording permission.
1360: No playback device exists.
1359: Audio Device Module: No recording device exists.
1020: Audio device module: The audio playback frequency is abnormal, which may cause audio freezes. This abnormality is caused by high CPU usage. Agora recommends stopping other apps.
1021: Audio device module: The audio recording frequency is abnormal, which may cause audio freezes. This abnormality is caused by high CPU usage. Agora recommends stopping other apps.
1018: Audio Device Module: Fails to record.
1015: Audio Device Module: A playback error occurs. Check your playback device, or try rejoining the channel.
1017: Audio Device Module: A recording error occurs.
1007: Audio Device Module: An error occurs in setting the sampling frequency.
1023: Audio Device Module: An error occurs in starting the loopback device.
1009: Audio Device Module: An error occurs in starting the playback device.
1012: Audio Device Module: An error occurs in starting the recording device.
1010: Audio Device Module: An error occurs in stopping the playback device.
1013: Audio Device Module: An error occurs in stopping the recording device.
160: The client is already recording audio. To start a new recording, call stopAudioRecording
to stop the current recording first, and then call startAudioRecordingWithConfig
.
19: The resources are occupied and cannot be used.
1030: Audio Routing: Fails to route the audio to the connected Bluetooth device. The default route is used.
13: The SDK fails to bind to the network socket. This is for internal SDK use only, and is not returned to the app through any method or callback.
115: The bitrate of the sent data exceeds the limit of 6 Kbps when the user calls the sendStreamMessage
method.
6: The buffer size is not big enough to store the returned data.
11: The request is canceled. This is for internal SDK use only, and is not returned to the app through any method or callback.
123: The client is banned by the server.
111: The Internet connection is interrupted. This applies to the Agora Web SDK only.
112: The Internet connection is lost. This applies to the Agora Web SDK only.
120: Decryption fails. The user may have used a different encryption password to join the channel. Check your settings or try rejoining the channel.
130: The encrypted stream is not allowed to publish.
1: A general error occurs (no specified reason).
21: In Windows, specific firewall settings cause the SDK to fail to initialize and crash.
101: The specified App ID is invalid. Please try to rejoin the channel with a valid App ID.
2: An invalid parameter is used. For example, the specific channel name includes illegal characters.
102: The specified channel name is invalid. Please try to rejoin the channel with a valid channel name.
110: The token is invalid.
134: The user account is invalid.
17: The request to join the channel is rejected. Possible reasons are:
joinChannel
18: The request to leave the channel is rejected. Possible reasons are:
leaveChannel
.1001: Fails to load the media engine.
157: The extension library is not integrated, such as the library for enabling deep-learning noise reduction.
14: The network is unavailable. This is for internal SDK use only, and is not returned to the app through any method or callback.
15: No network buffers are available. This is for internal SDK use only, and is not returned to the app through any method or callback.
0: No error occurs.
9: No permission exists. Check if the user has granted access to the audio or video device.
103: Fails to get server resources in the specified region. Please try to specify another region.
113: The user is not in the channel when calling the sendStreamMessage
or getUserInfoByUserAccount
method.
7: The SDK is not initialized before calling this method.
3: The SDK module is not ready. Possible solutions:
4: The current state of the SDK does not support this function.
151: CDN related errors. Remove the original URL address and add a new one by calling the removePublishStreamUrl
and addPublishStreamUrl
methods.
156: The format of the RTMP or RTMPS stream URL is not supported. Check whether the URL format is correct.
154: An error occurs in Agora’s streaming server. Call the addPublishStreamUrl
method to publish the stream again.
153: The host manipulates other hosts' URLs. Check your app logic.
155: The server fails to find the stream.
152: The host publishes more than 10 URLs. Delete the unnecessary URLs before adding new ones.
5: The request is rejected. This is for internal SDK use only, and is not returned to the app through any method or callback.
114: The size of the sent data is over 1024 bytes when the user calls the sendStreamMessage
method.
1002: Fails to start the call after enabling the media engine.
1003: Fails to start the camera.
1004: Fails to start the video rendering module.
10: An API method timeout occurs. Some API methods require the SDK to return the execution result, and this error occurs if the request takes too long (over 10 seconds) for the SDK to process.
109: The token expired.
116: Too many data streams (over five streams) are created when the user calls the createDataStream
method.
12: The method is called too often. This is for internal SDK use only, and is not returned to the app through any method or callback.
1602: Video Device Module: An error occurs in video encoding.
1601: Video Device Module: An error occurs in initializing the video encoder.
1603: Video Device Module: An error occurs in setting the video encoder.
1600: Video Device Module: An unknown error occurs.
1501: Video Device Module: The camera is unauthorized.
128: Incorrect watermark file data format.
127: Incorrect watermark file information.
124: Incorrect watermark file parameter.
125: Incorrect watermark file path.
126: Incorrect watermark file format.
129: An error occurs in reading the watermark file.
Generated using TypeDoc
Error codes occur when the SDK encounters an error that cannot be recovered automatically without any app intervention.