全局错误说明
更新时间:2021-09-28 14:08:02
返回信息示例
请求API正确返回:
{
"code": 200,
"status": "success",
"message": "",
"data": ""
}
请求API字段校验错误返回:
{
"code": 400,
"status": "error",
"message": "invalid signature.",
"data": ""
}
请求API业务逻辑处理错误返回:
{
"code": 500,
"status": "fail",
"message": "access forbidden",
"data": ""
}
各字段含义:
| 名称 | 类型 | 含义 |
|---|---|---|
| code | Integer | 响应状态码,具体对应关系如下 |
| status | String | 响应状态文本信息 |
| message | String | 响应描述信息,当code为400或者500的时候,辅助描述错误原因,具体参考错误信息对照表 |
错误码描述
| code | status | message |
|---|---|---|
| 200 | success | 表示业务处理成功,该字段为空字符串 |
| 40X(X为任意数字) | error | 表示字段校验错误,错误信息表示具体的错误字段描述信息,例如 签名不可用(invalid signature.) |
| 500 | fail | 表示服务器业务逻辑处理错误,错误信息为具体的业务逻辑处理错误信息,例如权限不够(access forbidden) |
Message 详细信息解释对照表
| message | 含义解释 |
|---|---|
| undefined error | 未知错误 |
| need to login | 未登录 |
| access forbidden | 禁止访问 |
| redirect | 需要重定向到某个 URL(输出重定向 URL 到 data.url 中) |
| illegal operation | 非法的操作 |
| channel id or password error | 登录时,频道号或密码错误 |
| conflict with user login | 教师登录时,与用户登录状态冲突 |
| illegal stream status | 流状态错误 |
| illegal domain | 非法的liveDomain |
| channel forbid login | 频道的登录开关关闭,禁止登录 |
| channel already login | 已有用户登录,请稍后再试 |
| channel in live | 该频道正在直播,请稍后再试 |
| channel in no live | 该频道不在直播,请稍后再试 |
| please user pure video scene channel login | 纯视频登录 |
| qps exceeds number of calls | qps超出调用数量 |
| invalid date time format | 非法的日期格式 |
| param validate error | 参数校验错误 |
| param should not be empty: %s | 参数值为空 |
| param is not digit: %s | 参数不是非负整数 |
| param is not number: %s | 参数值不是数字 |
| param length is incorrect: %s | 参数值长度不正确 |
| number range error | 数值范围错误 |
| json format error | 参数不是json格式,或者缺少json字段,或者json字段类型错误 |
| param exceeds maximum value of integer: %s | 参数超过了整型数值范围 |
| param is not color | 参数不是颜色值 |
| param is not boolean (Y / N) | 参数不是布尔值(Y/N) |
| param is not date normal format | 参数不是正确的yyyy-MM-dd日期格式 |
| invalid globalEnabledType:%s | 参数不是正确的GlobalEnabledType |
| invalid date format | 日期格式错误通用返回 |
| date range error | 日期范围错误 |
| date error | 日期格式错误 |
| array param empty or exist empty element | 数组中存在空串 |
| arrays length are not equal | 数组长度不相等 |
| incorrect protocol | 错误协议头 |
| 昵称已存在:%s | 昵称重复 |
| invalid email | 非法邮箱 |
| param invalid %s | 参数非法 |
| invalid role | 错误的后台角色类型 |
| invalid roomId | 错误的聊天室房间号 |
| invalid billingPlan | 错误的直播套餐类型 |
| invalid rtc record type | 错误的直播rtc录制类型 |
| invalid bill trade type | 非法账单交易类型 |
| invalid bill status | 非法账单状态 |
| invalid channel list order | 错误的频道列表排序值 |
| invalid live scene | 错误的直播场景 |
| invalid menu type | 错误的菜单类型 |
| menu already exist | 菜单已经存在 |
| menu count reached the limit | 菜单数达到上限 |
| illegal menu id: %s | 非法的频道页面菜单Id |
| invalid marquee type | 跑马灯类型错误 |
| invalid player logo position | 错误的播放器logo图片位置 |
| invalid live player skin | 错误的直播播放器皮肤值 |
| invalid stream type | 错误的直播方式流类型 |
| invalid warmup type | 错误的暖场类型 |
| invalid menu url content | 错误的视频来源类型 |
| invalid watch skin type | 错误的观看页皮肤类型 |
| invalid live player type | 错误的直播播放器类型 |
| invalid lottery range type | 错误的抽奖候选人类型 |
| invalid sms service type | 错误的短信服务商类型 |
| invalid watch layout type | 错误的观看页布局类型 |
| invalid watch template type | 错误的观看页模板类型 |
| confirm password inconsistency | 新密码和确认密码不一致 |
| old password error | 旧密码错误 |
| invalid donate type | 错误的打赏类型 |
| invalid advert kind | 错误的广告类型 AdvertKind |
| invalid advert type | 错误的广告类型 AdvertType |
| invalid income type | 错误的收入类型 |
| invalid viewlog type | 错误的观看日志类型 |
| invalid disk video lang type | 错误的硬盘推流语言类型 |
| upload file size exceeds the limit | 上传的文件大小超过限制 |
| upload file format error: %s | 上传文件的格式错误 |
| channel status not live | 频道暂无直播 |
| channel not found. | channel没有找到 |
| illegal channel id: %s | 非法的频道号 |
| channel is unavailable | 频道已关闭 |
| kaptcha error | 图片验证码错误 |
| sms code error | 短信验证码错误 |
| send sms code too frequent | 短信验证码发送频繁 |
| illegal lottery id: %s | 非法的抽奖记录ID |
| user not found. | user没有找到 |
| slide verification error | 滑动验证错误 |
| channel count reached the limit | 频道数达到上限 |
| channel batch count over limit | 批量创建、删除频道时,每批次的频道数超过限制(目前为100) |
| illegal category id: %s | 非法的频道分类ID |
| category count reached the limit | 频道分类数达到上限 |
| category name already exists | 已存在同名的频道分类 |
| can't change default category | 不能修改默认频道分类 |
| polyv sms enabled close | 不允许使用保利威短信服务 |
| disk not exist max rate video | 硬盘推流最高码率的视频不存在 |
| invalid live start time | 错误的直播开始时间 |
| video format error | 硬盘推流的视频格式错误,不能使用m3u8的视频 |
| video id error | 视频ID错误 |
| can't handle encrypted video | 硬盘推流视频,不能添加加密视频 |
| video play time error | 硬盘推流视频,播放时间错误(为过去的时间) |
| video play time conflicts | 硬盘推流视频,播放时间段冲突 |
| can't delete video playing | 硬盘推流视频,无法删除直播中的视频 |
| not pull stream | 当前流类型不是拉流,无法进行操作 |
| can't change stream type during living | 直播状态时不能切换直播方式 |
| invalid info fields type | 登记观看字段类型错误 |
| invalid auth type | 错误的观看条件类型 |
| info fields is empty | 登记观看没有创建登记字段 |
| none of the info fields are selected | 登记观看没有勾选登记字段 |
| info fields incomplete | 提交字段信息不完整(各字段信息数组长度不一致) |
| the name type is unique | 名字类型的字段最多只有一个 |
| whitelist is empty | 设置白名单观看方式时,没有白名单记录 |
| whitelist excel parse error | 上传的白名单表格记录解析错误 |
| whitelist excel no data | 上传的白名单表格记录没有数据 |
| invalid main auth | 主要观看条件错误(不能为分享观看) |
| invalid secondary auth | 次要观看条件错误(不能为自定授权观看或外部授权) |
| authSettings have the same type | 主要观看条件和次要观看条件不能相同 |
| secondary auth unsupported | 主要条件为自定义授权或者外部授权时,不能设置次要观看条件 |
| illegal channel account | 非法的子频道号 |
| account count reached the limit | 子频道的数量达到上限 |
| page turn account already exists | 已存在子频道开启PPT翻页权限 |
| monitor account already exists | 已经存在其他监听角色的子账号 |
| invitation keyword already exists | 已存在相同的关键词 |
| round tour account already exists | 已存在子频道开启轮训权限 |
| whitelist name exist | 白名单名称已存在 |
| whitelist code exist | 白名单已存在 |
| round tour forbid | 无法使用轮巡功能,打开轮巡功能需要讲师先退出频道:http://wiki.igeeker.org/pages/viewpage.action?pageId=36671050 |
| vod user not exist | 直播用户的点播账号不存在 |
| the user is expired | 直播用户的点播账号已过期 |
| the user space is over | 直播用户的点播账号空间不足 |
| record file not exist | 录制视频不存在 |
| record file transfer fail | 录制视频转存失败 |
| record file format error | 合并的录制视频格式错误 |
| record file cannot merge | 录制文件无法合并 |
| record file m3u8 format not exist | 录制视频的m3u8格式还未生成 |
| record file already transferred | 录制视频已经转存过 |
| vod video has been added: %s | 点播视频已经添加到回放列表 |
| playback videoId error | 回放视频ID错误 |
| playback video unable to sort | 回放视频序号在边界(最前或最后),无法上移/下移排序 |
| playback video not exist | 回放视频没有找到 |
| playback video list is empty | 回放视频没有找到 |
| update playback video info error | 更新回放视频信息失败 |
| illegal playback type | 错误的直播回放类型 |
| forbid open debugEnabled | 频道直播时不能开启测试模式 |
| illegal switch type | 非法的开关类型 |
| the switch in current scene is illegal | 场景下的功能开关限制 |
| badwords excel parse error | 上传的严禁词表格记录解析错误 |
| badwords excel no data | 上传的严禁词表格记录没有数据 |
| illegal withdraw id | 提现订单号错误 |
| account is frozen | 账户被冻结 |
| invalid withdraw amount | 提现金额错误 |
| invalid bank card info | 尚未绑定银行卡信息 |
| withdraw times over limit | 提现次数超过限制 |
| withdraw info already exist | 已经绑定过银行卡信息 |
| illegal withdraw date | 提现日期错误 |
| illegal operation: %s | 主频道已经在推流,不允许切流 |
| illegal questionId | 错误的答题题目ID |
| illegal chat role | 错误的聊天室角色 |
| illegal banned type | 错误的禁言类型 |
| goods over limit | 错误打赏道具数量 |
| goods name over limit | 道具名称超过限制 |
| goods image length over limit | 道具图片长度超过限制 |
| illegal goods image | 非法道具图片 |
| upload files over limit | 上传文件个数 |
| record file m3u8 download fail | 下载recordfile的m3u8失败 |
| record file m3u8 extract ts message fail | 获取recordfile m3u8的ts信息失败 |
| record file clip m3u8 upload fail | 上传暂存文件剪辑后的m3u8文件失败 |
| record file m3u8 upload fail | 上传暂存m3u8文件失败 |
| there is only an one record file and not need merge | 只有一个文件不需要合并 |
| record file m3u8 not exist | m3u8文件不存在 |
| illegal record file id | |
| illegal playback origin | 非法的回放来源 |
| invalid playback video | 不能课件重制的视频 |
| illegal ppt record type | |
| this ppt record task already exist | |
| illegal background url | 课件重制背景图地址错误,或转存失败 |
| playback video is using | 正在使用的回放不能被删除 |
| check image porn fail | |
| record files 【%s】 missing mp4 | 录制文件缺少mp4 |
| only support wx pay | 只支持微信支付 |
| none redpack | 红包已派发完 |
| red pack expired | 红包已过期 |
| had join red pack | 已参加过红包雨 |
| channel status already live | 切换cdn,频道还是直播状态不允许切换 |
| cdn type is not exist | 要切换的cdn类型不存在 |
| forbid switch cdn | 账号没有切换cdn 的权限 |
| trial user pay price over limit | 试用账号的付费观看金额超过限制 |
| channel enroll setting error | 频道报名观看设置错误 |
| enroll record not found | 没有报名观看记录 |
| missing required field | 缺少必填题目 |
| robot num over limit | 虚拟用户数量超过限制 |
| robot setting operate too frequent:%d | 虚拟用户数量超过限制 |
| whitelist validate error | 白名单校验错误,可能存在多种情况的错误,在返回的data里面显示 |
| illegal whitelist code | 白名单的会员码错误,与频道号或者子频道号相同 |
| both watchEndTime and validTimePeriods has value | 付费观看,watchEndTime和validTimePeriods同时有值 |
| img url error: %s | 图片url错误 |
| invalid account role type | 非法的子频道角色类型 |
| guest account count reached the limit | 已达嘉宾人数上限 |
| account role error | 子账号权限错误 |
| oss callback params error | oss回调参数错误 |
| illegal oss upload type | 非法的oss上传类型 |
| can't delete special menu type | 不能删除的菜单 |
| menu id can't be empty | 菜单id不能为空 |
| user pureRtc privilege is closed | 用户没有开启纯RTC拉流频道的权限 |
| pureRtc currently only supports ppt scene | 纯rtc 拉流频道目前仅支持ppt 直播场景 |
| invalid bill type | 错误的账单类型 |
| appId error | appId错误 |
| live userId error | 直播userId错误 |
| appSecret error | appSecret 错误 |
| user sms is error | 用户短信配置错误 |
| delete all tuwen live status fail | 频道直播时不能删除全部图文 |
| illegal tuwen content id | 非法的图文直播内容ID |
| user tuwen live is closed | 用户的图文直播开关关闭 |
| content contains bad word:%s | 内容包含严禁词 |
| video and channel scene mismatch | 点播视频与直播频道场景不匹配 |
| assistant monitorenabled is close | 助教的监播开关为关闭 |
| assistant account count reached the limit | 已达助教人数上限 |
| transmit channel forbid use web-start | 转播频道不能使用网页开播 |
| single receive channel forbid use web-start | 单人转播模式下的接收频道不能使用网页开播 |
| language not support | 不支持的语言类型 |
| translate text over size | 翻译的语句长度过长 |
| chatTranslateEnabled is close | 聊天翻译开关关闭 |
| translate fail | 翻译失败 |
| openId is empty | 微信openId为空 |
| sessionId is empty | 场次ID为空 |
| no trial condition | 非试看条件 |
| trial watch only apply to mobile weixin | 试看必须在移动端微信 |
| viewer info empty | 观众信息为空 |
| channel donate setting error | 频道打赏设置错误 |
| like operate too frequent | 点赞发送频繁 |
| record file MP4 not exist | 录制视频的MP4文件不存在 |
| clip time frame format error | 录制视频的裁剪时段格式错误 |
| clip time frame over 100 limit | 录制视频的裁剪时段区间超过100个限制 |
| record file clip timeFrame error | 暂存文件剪辑的时间区间错误 |
| failed to generate the policy | 初始化错误 |
| channelId is illegal | 非法的频道号 |
| fileId is empty | 文件ID为空 |
| file is not found | 文件不存在 |
| file delete occur an error | 删除文件出错 |
| fileName is empty | 文件名称为空 |
| file type is wrong | 错误的文件类型 |
| add file record occur an error | 添加文件出错 |
| illegal convert file status | 非法的文件状态 |
| illegal convert type | 非法的转换类型 |
| illegal ppt version type | 非法的PPT版本类型 |
| illegal document fileId | 非法的文件ID |
| delete ppt occur an error | 删除ppt出错了 |
| doc not found | 文档找不到 |
| channel session stats can not be found | 找不到该直播场次数据 |
| channel session stats can not be generated | 直播场次数据暂未生成 |
| 服务端异常 | 用于处理未知的服务端错误 |
| 系统繁忙 | 用于远程调用时的系统出错 |
| illegal resource type | 视频源类型错误 |
| video is not exist | 视频不存在 |
| unsupport video | 不支持的视频,没有mp4地址 |
| illegal seqId count | 布局与视频序号id数量不对应 |
| layout already exist | 布局和视频序号已存在 |
| illegal layout type | 布局模板类型错误 |
| guide resource not exist | 视频资源不存在 |
| guide layout not exist | 视频布局不存在 |
| video already exist | 点播的视频已经添加 |
| guide already start | 导播台已经启动 |
| guide has not been started | 导播台未启动 |
| guide is not exist | 导播台不存在 |
| account already bind to guide | 子频道被导播台绑定 |
| cdn type error | CDN的类型非阿里 |
| guide pgm is empty | PGM没有布局在播放 |
| rate num is error | 音量个数错误 |
| resource is not vod | 视频资源不是点播类型 |
| layout is using | 布局正在被场景使用 |
| unsupport encryed vod | 不支持加密视频 |
| illegal resource status | 非法的资源状态 |
| guide was keep alive | 导播台被保持存活,不能销毁 |
| illegal vod status | 点播视频的状态为非发布状态 |
| vod setting not changed | 点播的视频设置没有变化 |
| url illegal | url非法 |
| urgent vod not exist | 备播视频不存在 |
| 导播台分钟数已耗完 | 导播台分钟数不足 |
| record file duration limit error | 合并的录制视频时长超过24个小时错误 |
| questionnaire is not exist | 问卷不存在 |
| set basic image error | 设置频道基础图片出错了 |
| query Time range error | 查询的时间范围出错了 |
| rtc record file can not merge | 手动录制视频不能合并 |
| rtc record file can not clip | 手动录制视频不能剪辑 |
| scene forbids switching | 场景禁止切换 |
| Only default directories can be selected | 只能选择默认目录 |
| Forbidden word length in 1~20 | 严禁词长度在1~20之间 |
| unsupported record list | 不支持暂存列表 |
| not disk push stream | 当前流类型不是硬盘推流,无法进行操作 |
| channel passwd and channel viewer passwd can not be same | 频道密码和参与者密码不能一样 |
| scene operation limited | 场景操作受限 |
| other channel already has access | |
| illegal channel type | 非法的频道类型 |
| transmit channel duplicate | 重复设置关联子频道 |
| transmit receive channel can't change type | 已经关联主频道的子频道不能切换直播类型 |
| playback duration limited | 回放时长限制 |
| legal link mic mode type | 非法的连麦类型错误 |
| legal resolution radio type | 非法的摄像头码率错误 |
| legal marquee show mode | 非法的跑马灯显示类型 |
| channel linkMicLimit more than user LinkMicLimit or illegal | 频道连麦数超过用户套餐连麦人数 |
| legal censor content pass type | 非法审核内容通过类型 |
| transmit channel has already associated | 重复关联转播子频道 |
| transmit channel number limit: %s | 子频道数量已达上限 |
| two channel live scene are not equals | 两个频道直播场景不一致 |
| associate transmit channel error | 关联转播频道出错 |
| not transmit main channel %s | 不是发起转播频道,不能关联接收转播频道 |
| illegal receive channel id: %s | 非法的接收转播频道号 |
| illegal link mic type | 非法的连麦类型 |
| illegal link mic limit | 非法的连麦数量范围 |
| youzan decoder error | 有赞解密失败 |
| request body is not empty or lost params | 抢答请求参数不正确 |
| already auth login | 已经授权登录 |
| invalid watch auth | 非法观看授权 |
| ppt record status error | |
| illegal task id | 非法taskId |
| task finish | task已经完成 |
| name | 参数都不能为空 |
| the mic is not open | 频道没有开通连麦(连麦的人数为<= 0) |
| the mic viewers exceeded maximum | 超出最大的连麦人数限制 |
| global robot name exist | 已经存在该昵称 |
| weixin signature get fail | 获取微信签名失败 |
| authorization | 需要微信授权 |
| illegal shelf status | 非法上下架类型 |
| channel product sort type error | 商品排序类型错误 |
| channel product count limit 300 | 商品列表不能多于300 |
| camera input type error | 开播端摄像头输入类型错误 |
| channel product not found | 找不到频道商品错误 |
| channel product status can't be pushed | 非上架商品不能推送 |
| illegal channel product | 非法频道商品 |
| illegal param type: %s | 非法参数类型 |
| enroll watch can't support %s auth | 报名观看不支持观看条件 |
| required in weixin | 被要求在微信环境下使用 |
| url invalid:%s | url地址格式错误 |
| invalid record callback type | |
| can not login | 上课一次后不允许在登录 |
| channel product already top or bottom | 商品不能上下移动,已经是底部或者顶部了 |
| unsupported red pack type | 不支持红包类型 |
| average amount too low | 红包平均金额太低 |
| red pack amount to low | 红包金额不能太低 |
| red pack amount too much | 红包金额太高 |
| red pack count illegal | 红包数量非法 |
| channel promote must use new watch template | 渠道推广必须使用新版观看页 |
| channel promote exceed max record limit | 渠道推广超过最大数量限制 |
| channel multi meeting limit | 分会场最多10个 |
| channel multi meeting already add other channel | 已经绑定其他主会场 |
| channel multi meeting already as sub channel | 已经作为分会场频道 |
| channel multi meeting need the new version of the viewing page | 需要新版观看页才可以生效 |
| channel multi meeting already as main channel | 已经是主会场了 |
| illegal seminar channel | 非法研讨会类型 |
| duplicated seminar role password | 研讨会登录密码重复 |
| chat room nickname exist | 聊天室昵称已经存在,不能重复 |
| host has logged in | 主持人已经登录,不允许重复登录 |
| 分组数量应在2到50个之间 | 分组数量应在2到50个之间 |
| illegal seminar group id | 不合法的分组id |
| not found organization | 找不到组织架构 |
| illegal organization move | 非法组织架构移动 |
| not found webapp role | 找不到应用角色 |
| not found user children | 找不到子账号 |
| account is used | 账号已经被使用 |
| illegal user children status | 非法子账号用户状态 |
| organization count over limit | 组织数量超出限制 |
| user children role count over limit | 子账号角色数量超出限制 |
| user children count over limit | 子账号数量超出限制 |
| organization contains user children and not allow delete | 该组织包含子账号,不允许删除 |
| organization depth over limit | 组织层级超过限制 |
| the entry time for the lucky draw overlaps | 报名抽奖时间重叠 |
| enroll lottery record limit 100000 | 报名抽奖名单限制10w |
| enroll lottery source range error | 报名抽奖名单来源设置错误 |
| enroll lottery type error | 报名抽奖开奖方式错误 |
| enroll lottery already enroll | 已经报名 |
| enroll lottery mobile length limit | 手机号太长 |
| enroll lotteryId not found | 找不到抽奖信息 |
| sign error | 签名错误 |
| timestamp overdue | 时间戳过期 |
| enroll lottery already start enroll | 已经开奖 |
| guest can not login third push channel | 第三方推流频道的嘉宾无法登录客户端 |
