Error codes

更新时间:
复制 MD 格式

This topic describes the error codes for the audio and video call Web API.

Call setup error codes

Error code

Description

-101

Signaling connection initialization timed out.

-102/1004

Signaling connection initialization failed.

-201

Failed to initialize the channel: Invalid channel state.

-202

Failed to initialize the channel: Invalid initialization parameters.

-203

Failed to initialize the channel. The data channel can be enabled only in P2P mode.

-301

Failed to create the channel: The channel is not initialized.

-302

Failed to create the channel: The server returned an error.

-303

Failed to create the channel: The request to create the channel timed out.

-304

Failed to create the channel: Media initialization timed out during auto-publishing after channel creation.

-401

Failed to join the channel: The channel is not initialized.

-402

Failed to join the channel: Invalid parameters.

-403

Failed to join the channel: The server returned an error.

-404

Failed to join the channel: The request to join the channel timed out.

-501

Failed to invite a user to the channel: Invalid channel state.

-502

Failed to invite a user to the channel: The server returned an error.

-503

Failed to invite a user to the channel: Invalid parameters.

-601

The user failed to respond to the invitation: Invalid channel state.

-602

The user failed to respond to the invitation: The server returned an error.

30001

Signaling connection failed.

Media stream publishing and subscription error codes

Error code

Description

-1071

Failed to publish the media stream: The server returned an error.

-1072

Failed to publish the media stream: The video tag is not set.

-1073

Failed to publish the media stream: The publish limit is exceeded.

-1074

Failed to publish the media stream: The media link connection timed out during publishing.

-1081

Failed to subscribe to the media stream: The server returned an error.

-1082

Failed to subscribe to the media stream: The videoId of the video window is already in use.

-1083

Failed to subscribe to the media stream: The subscription limit is exceeded.

-1084

Failed to subscribe to the media stream: Failed to establish the media link for subscription.

-1085

Failed to subscribe to the media stream: The videoId of the subscribed window is empty.

-1086

Failed to subscribe to the media stream: The subscribe_video_id or subscribe_audio_id parameter is missing.

-1087

Failed to subscribe to the media stream: Invalid channel state.

Stream switching error codes

Error code

Description

-1101

Failed to switch the stream: The current sid is not published.

-1102

Failed to switch the stream: Invalid stream switching parameters.

-1104

Failed to switch the stream: Failed to get the audio and video.

-1105

Failed to switch the stream: The screen sharing stream is empty.

-1106

Failed to switch the stream: Failed to get the video.

-1107

Failed to switch the stream: Failed to get the file stream.

-1108

Failed to switch the stream: Failed to get the audio.

-1109

Failed to switch the stream: The browser does not support audio and video.

-1110

Failed to switch the stream: No custom stream is provided.

Server-side recording error codes

Error code

Description

-10311

Server-side recording failed: The server failed to start the recording.

-10312

Server-side recording failed: The request to start the recording timed out.

-10313/-10314

Server-side recording failed.

-10291

The server returned an error.

-10321

Failed to switch the video resolution.

-10341

Failed to pause server-side recording: Invalid channel state.

-10342

Failed to pause server-side recording: Invalid recording state.

-10343

Failed to pause server-side recording: Server error.

-10351

Failed to get the server-side recording result: Invalid connection state.

-10352

Failed to get the server-side recording result: The server returned an error.

-10353

Failed to get the server-side recording result: Invalid request parameters.

-10361

Failed to resume server-side recording: Invalid channel state.

-10362

Failed to resume server-side recording: Invalid recording state.

-10363

Failed to resume server-side recording: Server error.

Audio-on-demand error codes

Error code

Description

-10371

Failed to start audio-on-demand: The server returned an error.

-10372

Failed to start audio-on-demand: Invalid channel state.

-10373

Failed to start audio-on-demand: The server failed to send a start notification.

-10374

Failed to start audio-on-demand: Invalid on-demand parameters.

-10375

Failed to start audio-on-demand: The request to start the on-demand service timed out.

-10381

Failed to change the server-side recording watermark.

-10391

Failed to stop audio-on-demand: The server returned an error.

-10392

Failed to stop audio-on-demand: Invalid channel state.

-10393

Failed to stop audio-on-demand: Invalid on-demand ID.

Browser recording error codes

Error code

Description

-12481/-12482

Server-side recording failed.

-20301

Failed to start browser recording: Invalid channel state.

-20302

Failed to start browser recording: A recording is already in progress.

-20303

Failed to start browser recording: The recording ID is already in use.

-20304

Failed to start browser recording: No stream is published or subscribed.

-20305

Failed to start browser recording: Invalid mediaType parameter.

-20306

Failed to start browser recording: Invalid stream_list length.

-20307

Failed to start browser recording: No video or audio stream is requested for recording.

-20308

Failed to start browser recording: Invalid record_resolution.

-20331

Failed to stop browser recording: Invalid channel state.

-20371

Failed to pause browser recording: Invalid channel state.

-20372

Failed to pause browser recording: Browser recording is not started.

-20391

Failed to resume browser recording: Invalid channel state.

-20392

Failed to resume browser recording: Browser recording is not started.

-20351

Failed to download the browser recording file: Invalid channel state.

-20352

Failed to download the browser recording file: Browser recording is not started.

-20353

Failed to download the browser recording file: Browser recording is not stopped.

-30101

Failed to get device information: The browser does not support audio and video.

-30102

Failed to get device information: Failed to get media.

Audio and video stream shutdown notification codes

Status

Error code

Description

Normal

5001

The stream was shut down because the publish/subscribe operation was canceled.

5002

The stream was shut down because the remote user left the channel.

5006

The stream was shut down because the remote user stopped publishing.

5008

The stream was shut down because the user left the channel.

Abnormal

5003

Failed to start the stream (signaling phase).

5004

The stream connection timed out.

5005

The stream connection is successful, but the channel status is abnormal.

5007

The media link connection was shut down.

5009

The media server sent a shutdown instruction through the signaling channel.

5010

The media link disconnection timed out.

5011

The media link connection failed.

5012

Failed to initialize the media source for publishing.

Publishing error codes

Error code

Error message

5101

Failed to start publishing: Failed to start the video.

5102

Failed to start publishing: Failed to start the audio.

5103

Failed to start publishing: The browser does not support media.

5104

Failed to start publishing: Invalid channel state.

5105

Failed to start publishing: Failed to start desktop sharing.

5106

Failed to start publishing: Failed to get the file stream.

5107

Failed to start publishing: The file to be published does not exist.

5108

Failed to start publishing: The publishing area does not exist.

5109

The background blur image is not provided.

5110

The custom stream is not provided.

5111

Failed to start publishing: The custom resolution, frame rate, and bitrate parameters are not provided.

Encoding format switching error codes

Error code

Description

-5201

The encoding format could not be switched due to an invalid channel state.

-5202

Failed to switch the encoding format: The stream information cannot be found.

-5203

Switch Encoding Format: This encoding format is not currently supported.

-5204

Failed to switch the encoding format: setRemoteDescription failed.

-5205

Failed to switch the encoding format: setLocalDescription failed.

-5206

Failed to switch the encoding format: createOffer failed.