错误码
错误码设计采用二级分类,6 位数字设计。 前 2 位代表一级分类,后 4 位代表具体错误码。
一级分类
| 前 2 位 | 说明 |
|---|---|
| 10 | 基础分类 |
| 11 | 传输层 |
| 12 | 后端错误 |
| 13 | 业务错误 |
| 14 | 解码错误 |
| 15 | 引擎错误 |
错误码一览
10 基础分类
| 错误码 | 名字 | 说明 |
|---|---|---|
| 100000 | Unknown | 未知错误 |
| 100001 | Param | 参数错误 |
| 100002 | UnSupported | 划线机型以下 |
| 100003 | JSONStringify | JSON Stringify 错误 |
| 100004 | JSONParse | JSON Parse 错误 |
| 100005 | DB | DB 异常 |
| 100101 | WebGl2NotSupported | 不支持 WebGl2 |
| 100102 | WasmNotSupported | 不支持 WebAssembly |
| 100103 | WebRTCNotSupported | 不支持 WebRTC |
| 100104 | IndexDBNotSupported | 不支持 IndexDB |
| 100105 | WebRTCH264NotSupported | WebRTC 不支持 H264 |
| 100106 | BrowserNotSupported | 不支持的浏览器或浏览器版本 |
11 传输层
| 错误码 | 名字 | 说明 |
|---|---|---|
| 110001 | HTTP | HTTP 请求错误 |
| 110002 | WSUrlGetFailed | Websocket Url 获取失败 |
| 110003 | WSOpenTimeout | Websocket Open 超时 |
| 110004 | WSConnectFailed | Websocket 连接失败 |
| 110005 | WSCloseAbnormal | Websocket 意外关闭 |
| 110006 | RTCConnectTimeout | RTC 连接超时 |
| 110007 | RTCCreateOffer | RTC Offer 创建失败 |
| 110008 | RTCSetLocalDescription | RTC 设置本地 SDP 失败 |
| 110009 | RTCCreateAnswer | RTC Answer 创建失败 |
| 110010 | RTCSetRemoteDescription | RTC 设置远端 SDP 失败 |
| 110011 | RTCDisconnectedAbnormal | RTC 连接失败 |
| 110012 | DoActionTimeout | Action 请求超时 |
| 110013 | XmitModuleLoadFailed | XmitModule 加载失败 |
| 110014 | ScheduleRequestTimeout | 调度请求超时 |
| 110015 | ScheduleRequestFailed | 调度请求失败 |
| 110016 | SignalRequestTimeout | 信令请求超时 |
| 110017 | SignalRequestFailed | 信令请求失败 |
| 110018 | VersionMismatch | 连接后台与 sdk 版本不匹配 |
12 后端错误
| 错误码 | 名字 | 说明 |
|---|---|---|
| 122000 | NoAvailableWorker | 服务器异常 |
| 122001 | ServerUserLimit | 服务器异常 |
| 122002 | ServerParam | 服务器异常 |
| 122003 | LackOfToken | 服务器异常 |
| 122004 | LoginFailed | 服务器异常 |
| 122005 | VerifyServiceDown | 服务器异常 |
| 122006 | CreateSessionFailed | 服务器异常 |
| 122008 | RtcConnection | 服务器异常 |
| 122009 | DoActionFailed | 服务器异常 |
| 122010 | StateSyncFailed | 服务器异常 |
| 122011 | BroadcastFailed | 服务器异常 |
| 122012 | DataAbnormal | 服务器异常 |
| 122015 | GetOnVehicle | 服务器异常 |
| 122016 | ServerInternalError | 服务器异常 |
| 122017 | RepeatLogin | 服务器异常 |
| 122018 | RoomDoesNotExist | 服务器异常 |
| 122019 | TicketExpire | 服务器异常 |
| 122020 | ServerRateLimit | 服务器异常 |
| 122022 | UserKicked | 服务器异常 |
| 122023 | EnterWorldNotInTime | 服务器异常 |
| 122025 | IdleTimeout | 用户长时间未操作,服务端主动断开,释放资源 |
| 122026 | PointUnReachable | 导航目标点位不可达 |
| 122027 | QueueVerifyFailed | 未排队完成发起进房 |
| 122028 | NoNeedRotateTo | 旋转角度过小,无需旋转 |
| 122333 | DoActionBlocked | 服务器异常 |
| 122334 | ActionMaybeDelay | 服务器异常 |
| 122335 | UnReachable | 服务器异常 |
| 123001 | VGCodeTokenInvalid | voice group 鉴权失败 |
| 123002 | VGCodeInternalMysqlError | voice group 查询 mysql 数据错误 |
| 123003 | VGCodeInternalRedisError | voice group 查询 redis 数据错误 |
| 123004 | VGCodeGroupPubSetFullError | voice group pub 人数已满 |
| 123005 | VGCodeParamError | voice group 请求传递参数错误 |
| 123006 | VGCodeGroupNotExistError | voice group 请求的 groupId 不存在 |
| 123110 | VGCodeHostPermissionError | voice group 无法授权主持人 |
| 123111 | VGCodePubPermissionError | voice group 开麦权限不足 |
| 123112 | VGCodeSubPermissionError | voice group 收听权限不足 |
| 123113 | VGCodeApprovalPermissionError | voice group 踢人权限不足 |
| 123114 | VGCodeKickPermissionError | voice group 审批权限不足 |
| 123115 | VGCodePermissionError | voice group 权限不足 |
| 123116 | VGCodeUserLogOutError | voice group 用户已登出 |
13 业务错误
| 错误码 | 名字 | 说明 |
|---|---|---|
| 130001 | ConfigFetch | 配置拉取失败 |
| 130002 | DecoderInit | 解码器初始化错误 |
| 130003 | DecoderInitTimeout | 解码器初始化超时 |
| 130004 | LoadLPM | 粗模加载失败 |
| 130005 | RepeatInitWorld | 重复初始化世界错误 |
| 130006 | RepeatConstructWorld | 只允许构建一个世界 |
| 130007 | WorldInitTimeout | 初始化世界超时 |
| 130008 | WorldEnterTimeout | 进入世界超时 |
| 130009 | EnterWorldWithoutInit | 未初始化就进房 |
| 130010 | RepeatEnterWorld | 进房过程中再次进房 |
| 130011 | ExcutionAbnormal | 切换房间/皮肤/路线异常 |
| 130012 | ExcutionTimeout | 切换房间/皮肤/路线超时 |
| 130013 | DisconnectedWhenEnter | 进房过程中断连 |
| 130014 | PacketLostWhenEnter | 网络较差无法正常进入世界 |
| 130015 | PreloadPrepareFailed | 预加载准备阶段出错 |
| 130016 | PreloadFailed | 预加载出错 |
| 130017 | PreloadCanceled | 预加载取消 |
| 130018 | VideoElementPlayFailed | video element 播放失败 |
| 130019 | PreloadPoorNetwork | 预加载时连续 15s 下载速度降低 |
| 130020 | WorldEnterPageHidden | 进入世界时切后台 |
| 130021 | GreenScreenInitTimeout | 绿幕模型初始化超时 |
| 130022 | WebglContextCreation | webgl 上下文创建失败 |
| 130023 | WorldInitOnTrackTimeout | ontrack 超时 |
| 130024 | PostProcessFailed | 进房/切流后处理失败 |
| 130025 | CurrRoomNotFoundWhenReconnect | 重连进房时找不到当前房间 |
| 130026 | SetSkinInfoDuringChanging | 切流过程中再次切流 |
| 130027 | RepeatStartPreload | 重复调用预加载 start 方法 |
| 130028 | ConnectInWrongState | 在错误的状态下进行建连 |
| 130029 | IncompatibleMediaType | 软解下禁止 1080P 码流 |
| 130030 | SoftDecodeFails | 软解失败 |
| 130031 | PrecreateFailed | 预创建失败 |