Help Center/ SparkRTC/ SDK Reference/ Web SDK/ API Reference/ Error Codes Reported on the Client
Updated on 2023-11-01 GMT+08:00

Error Codes Reported on the Client

This section describes details about the error codes (RtcErrorCode) reported on the client of the Web SDK.

Table 1 Error code description

Class Member

Error Code

Description

Error Cause or Handling Suggestion

RTC_ERR_CODE_SUCCESS

0

success

Succeeded.

RTC_ERR_CODE_RTC_SDK_ERROR

90000001

sdk internal error

SDK internal error. Contact Huawei technical support.

RTC_ERR_CODE_WAIT_RSP_TIMEOUT

90000004

message response timeout

Response timed out. Contact Huawei technical support.

RTC_ERR_CODE_INVALID_PARAMETER

90000005

invalid parameter

Incorrect parameter. For details, see the API documentation.

RTC_ERR_CODE_INVALID_OPERATION

90100001

illegal operation

Invalid operation. The user status is incorrect.

RTC_ERR_CODE_NOT_SUPPORT_MEDIA_DEVICES

90100002

not support enumerate devices

The browser does not support the enumerateDevices method.

RTC_ERR_CODE_NO_AVAILABLE_DEVICES

90100003

no available devices

No available device is found. Check whether the device is ready.

RTC_ERR_CODE_NO_AVAILABLE_VIDEO_INPUT_DEVICES

90100004

no available video input devices

No available camera device is found. Check whether the video capture device is ready.

RTC_ERR_CODE_NO_AVAILABLE_AUDIO_INPUT_DEVICES

90100005

no available audio input devices

No available audio device is found. Check whether the audio capture device is ready.

RTC_ERR_CODE_NO_AVAILABLE_AUDIO_OUTPUT_DEVICES

90100006

no available audio output devices

No audio output device found.

RTC_ERR_CODE_STATUS_ERROR

90100007

room status error

Incorrect room status. Check whether the user can join the meeting.

RTC_ERR_CODE_WEBSOCKET_NOT_CONNECTED

90100008

websocket connection state is not "CONNECTED"

WebSocket connection failed. Check the connection status.

RTC_ERR_CODE_WAIT_CONFIG_FAIL

90100009

wait server config fail

Failed to obtain the delivered configuration. Contact Huawei technical support.

RTC_ERR_CODE_PUBLISH_RESPONSE_FAIL

90100010

publish response fail

Failed to respond to the stream release request. Contact Huawei technical support.

RTC_ERR_CODE_REGION_NOT_COVERED

90100011

current region is not covered, service unavailable

The server IP address is not found. Contact Huawei engineers.

RTC_ERR_CODE_WEBSOCKET_CONNECT_TIMEOUT

90100012

websocket connect timeout

WebSocket connection establishment timed out. Contact Huawei technical support.

RTC_ERR_CODE_WEBSOCKET_RECONNECT_TIMEOUT

90100013

websocket reconnect timeout

WebSocket reconnection timed out. Contact Huawei technical support.

RTC_ERR_CODE_WEBSOCKET_NOT_OPEN

90100014

websocket is not open

WebSocket connection is not opened. Contact Huawei technical support.

RTC_ERR_CODE_WEBSOCKET_INTERRUPTED

90100015

websocket connection state is idle, interrupt operation

WebSocket connection is forcibly closed. The cause may be that the user leaves the meeting or reconnects to the meeting.

RTC_ERR_CODE_WEBSOCKET_CONNECT_ERROR

90100016

websocket connect error

WebSocket listening error. The server proactively closes the connection.

RTC_ERR_CODE_CAPTURE_PERMISSION_DENIED

90100017

capture failed, permission denied

Collection failed. The data collection permission is not granted to the audio/video device. You are advised to ask the user to grant the access permission to the camera/microphone.

RTC_ERR_CODE_CAPTURE_OVER_CONSTRAINED

90100018

capture failed, Constraint parameter invalid

Collection failed. The audio/video capture device does not support the configured collection restrictions.

RTC_ERR_CODE_CAPTURE_DEVICE_NOT_FOUND

90100019

capture failed, requested device not found

Collection failed because the device is not found. You are advised to ask the user to check whether the camera or microphone required for the call is ready before the call starts.

RTC_ERR_CODE_CAPTURE_DEVICE_NOT_READABLE

90100020

capture failed, maybe device is occupied by other application

Collection failed because the device has been occupied. Check the usage status. You are advised to give a prompt message indicating that the camera or microphone cannot be accessed temporarily, and ask the user to ensure that other applications are not requesting for accessing the camera or microphone and try again.

RTC_ERR_CODE_PLAY_NOT_ALLOW

90100021

the user didn't interact with the document first, please trigger by gesture

Playback is not allowed.

RTC_ERR_CODE_ROLE_NO_PERMISSION

90100022

the user role have no permission to operate

The user role does not have the permission. Check the user role.

RTC_ERR_CODE_ANSWER_SDP_INVALID

90100023

the answer sdp is invalid

SDP negotiation error. Contact Huawei technical support.

RTC_ERR_CODE_MEDIA_UPSTREAM_UNSUPPORTED

90100024

the upstream media is not supported

The browser does not support media capture.

RTC_ERR_CODE_INTERNAL_EXCEPTION

90100104

server internal exception

Internal server error. Contact Huawei technical support.

RTC_ERR_CODE_SEND_TO_RTCCTRL_FAIL

90100105

server internal exception

Internal server error. Contact Huawei technical support.

RTC_ERR_CODE_RTCCTRL_EXCEPTION

90100106

server internal exception

Internal server error. Contact Huawei technical support.

RTC_ERR_CODE_WS_NOT_SUPPORTED

90100107

websocket is unsupported

WebSocket is not supported.

RTC_ERR_CODE_REQUEST_FREQUENTLY

90100108

request too frequently

The request is too frequent. Check the program.

RTC_ERR_CODE_INVALID_REQUEST_BODY

90100109

server internal exception

Internal server error. Contact Huawei technical support.

RTC_ERR_CODE_INVALID_RESPONSE

90100110

server internal exception

Internal server error. Contact Huawei technical support.

RTC_ERR_CODE_INTERNAL_ERROR

90100199

server internal exception

Internal server error. Contact Huawei technical support.

RTC_ERR_CODE_INVALID_CRTL_PARAMETER

90100201

request parameter is invalid

Invalid request parameter. Contact Huawei technical support.

RTC_ERR_CODE_INVALID_REQUEST

90100202

server internal exception

Internal server error. Contact Huawei technical support.

RTC_ERR_CODE_JOIN_ROOM_FAIL

90100203

join room fail

Failed to join the room. Contact Huawei technical support.

RTC_ERR_CODE_ALREADY_JOINED

90100204

joined already

You have already joined the room. Contact Huawei technical support.

RTC_ERR_CODE_NO_SFU_RESOURCE

90100205

server internal exception

Internal server error. Contact Huawei technical support.

RTC_ERR_CODE_INVALID_SSRC

90100206

invalid ssrc

The SSRC number is invalid. Contact Huawei technical support.

RTC_ERR_CODE_STREAM_ALREADY_PUSHED

90100207

stream is pushed already

The stream has already been pushed. Contact Huawei technical support.

RTC_ERR_CODE_SAVE_USER_ERROR

90100208

save user fail

Failed to save user information. Contact Huawei technical support.

RTC_ERR_CODE_UPDATE_USER_ERROR

90100209

update user fail

Failed to update user information. Contact Huawei technical support.

RTC_ERR_CODE_FETCH_USER_ERROR

90100210

fetch user fail

Failed to obtain user information. Contact Huawei technical support.

RTC_ERR_CODE_SAVE_ROOM_ERROR

90100211

save room fail

Failed to save the room information. Contact Huawei technical support.

RTC_ERR_CODE_UPDATE_ROOM_ERROR

90100212

update room fail

Failed to update the room information. Contact Huawei technical support.

RTC_ERR_CODE_INVALID_SUBSCRIBED_INFO

90100213

invalid subscribe info

The subscription information is incorrect. Contact Huawei technical support.

RTC_ERR_CODE_INVALID_PUSHED

90100214

invalid push stream

The pushed stream is invalid. Contact Huawei technical support.

RTC_ERR_CODE_SFU_FAIL

90100215

server internal exception

Internal server error. Contact Huawei technical support.

RTC_ERR_CODE_REQUEST_SFU_FAIL

90100216

server internal exception

Internal server error. Contact Huawei technical support.

RTC_ERR_CODE_OVERLOAD_ROOM_CAPACITY

90100217

overload room capacity

The number of users in the room has reached the maximum. Contact Huawei technical support.

RTC_ERR_CODE_INVALID_ENCODING

90100218

invalid encoding

Encoding failed. Contact Huawei technical support.

RTC_ERR_CODE_APPLY_SSRC_FAIL

90100220

apply ssrc fail

Failed to apply for an SSRC number. Contact Huawei technical support.

RTC_ERR_CODE_CTRL_TO_ACS_FAIL

90100221

server internal exception

Internal server error. Contact Huawei technical support.

RTC_ERR_CODE_KICK_USER_FAIL

90100222

kick user fail

Failed to kick out the user. Contact Huawei technical support.

RTC_ERR_CODE_APPLY_TO_PUSH_STREAM_FAIL

90100223

apply to push stream fail

Failed to request for pushing the stream. Contact Huawei technical support.

RTC_ERR_CODE_ROOM_IDLE

90100224

room is released

The room has already been released. Contact Huawei technical support.

RTC_ERR_CODE_KICKED_USER

90100225

user has been kicked out

The user has already been kicked out. Contact Huawei technical support.

RTC_ERR_CODE_SUBSCRIBED_USER_CONNECT_ERROR

90100226

subscribed user connected error

The link of the subscribed-to user is incorrect. Contact Huawei technical support.

RTC_ERR_CODE_ROOM_NOT_EXIST

90100227

room is not exist

The room does not exist. Contact Huawei technical support.

RTC_ERR_CODE_MCU_FAIL

90100228

server internal exception

Internal server error. Contact Huawei technical support.

RTC_ERR_CODE_ROLE_CHANGED_FAIL

90100229

role is unchanged

The role does not change. Contact Huawei technical support.

RTC_ERR_CODE_NO_MCU_RESOURCE

90100230

no available resources

Resources are insufficient. Contact Huawei technical support.

RTC_ERR_CODE_CREATE_PUSH_TASK_FAIL

90100231

server internal exception

Internal server error. Contact Huawei technical support.

RTC_ERR_CODE_MIX_TASK_EXISTS

90100232

the task is exist

The mixed stream task exists. Contact Huawei technical support.

RTC_ERR_CODE_MIX_TASK_NOT_EXISTS

90100233

the task is not exist

The mixed stream task does not exist. Contact Huawei technical support.

RTC_ERR_CODE_MIX_USER_EMPTY

90100234

no available users

The mixed stream user is empty. Contact Huawei technical support.

RTC_ERR_CODE_STOP_AUDIO_FAIL

90100235

stop audio fail

Failed to stop the audio stream. Contact Huawei technical support.

RTC_ERR_CODE_STOP_VIDEO_FAIL

90100236

stop video fail

Failed to stop the video stream. Contact Huawei technical support.

RTC_ERR_CODE_ROOM_TYPE_NOT_MATCH

90100237

room mode is not matched

The room mode is incorrect. Contact Huawei technical support.

RTC_ERR_CODE_AUDIO_LEVEL_NOT_MATCH

90100238

audio level is not matched

The audio level is incorrect. Contact Huawei technical support.

RTC_ERR_CODE_NOT_SUPPORT_MIX

90100239

unsupported operation

Mixed streams are not supported. Contact Huawei technical support.

RTC_ERR_CODE_VERSION_NOT_COMPLICATE

90100240

not matched

The version is incompatible. Contact Huawei technical support.

RTC_ERR_CODE_NOT_SUPPORT_SWITCH_ROLE

90100241

switch role is unsupported

Role switching is not supported.

RTC_ERR_CODE_SEND_TO_MCU_FAIL

90100242

server internal exception

Internal server error. Contact Huawei technical support.

RTC_ERR_CODE_REDIRECT_MODE_NOT_MATCH

90100243

unsupported operation

Invalid operation.

RTC_ERR_CODE_ANCHOR_NUMBER_OUT_OF_RANGE

90100246

the number of anchors has reached the maximum

The number of streamers exceeds the maximum. Check the program.

RTC_ERR_CODE_TOPN_SUB_MODE_FAULT

90100247

topn invalid parameters

The TopN subscription parameter is invalid. Contact Huawei technical support.

RTC_ERR_CODE_NO_EFFECT_RESPONSE

90100248

server internal exception

Internal server error. Contact Huawei technical support.

RTC_ERR_CODE_SFU_CTRL_EXCEPTION

90100249

server internal exception

Internal server error. Contact Huawei technical support.

RTC_ERR_CODE_DESKTOP_NUMBER_OUT_OF_RANGE

90100250

the number of desktop streams has reached the maximum

The number of desktop sharing streams exceeds the maximum. Check the program.

RTC_ERR_CODE_CLOUD_INTERNAL_ERROR

90100299

server internal error

Internal server error. Contact Huawei technical support.