- IM SDK ErrorCode 定义
- JMessage Android
- JMRTC Android
- 相关文档
IM SDK ErrorCode 定义
以下列表里的 ErrorCode 有可能在 SDK 的调用过程中出现。供参考理解其含义。
JMessage Android
只会出现在 Android SDK 里的错误码。
| Code | Error Message | 说明 |
|---|---|---|
| 0 | Success | 成功 |
| 871101 | Invalid request parameters. | 请求参数不合法 |
| 871102 | Request failed.please check your network connection. | 请求失败,请检查网络 |
| 871103 | Server returned an unexpected error code. | 服务器内部错误 |
| 871104 | Server internal error. | 服务器内部错误 |
| 871105 | User info not found. | 请求的用户信息不存在 |
| 871201 | Get response timeout,please try again later. | 响应超时 |
| 871300 | Have not logged in. | api调用发起者尚未登录 |
| 871301 | Invalid parameters. | api调用传入的参数不合法 |
| 871302 | Message content exceeds its max length. | 发送消息的消息体过大,整个消息体大小不能超过4k |
| 871303 | Invalid username. | 用户名不合法 |
| 871304 | Invalid password. | 密码不合法 |
| 871305 | Invalid name. | 名称不合法(包括nickname groupname notename) |
| 871306 | Invalid input. | 其他输入不合法 |
| 871307 | Some user not exists,operate failed. | 添加或移除群成员时,传入的成员列表中有用户不存在 |
| 871308 | SDK have not init yet. | SDK尚未初始化 |
| 871309 | Attached file not found. | 消息中包含的文件不存在 |
| 871310 | Network not available,please check your network connection. | 网络连接已断开,请检查网络 |
| 871311 | User avatar not specified. download avatar failed. | 用户未设定头像,下载头像失败 |
| 871312 | Create image content failed. | 创建ImageContent失败 |
| 871313 | Message parse error,version not match. | 消息解析出错,协议版本号不匹配 |
| 871314 | Message parse error,lack of key parameter. | 消息解析出错,缺少关键参数 |
| 871315 | Message parse error,check logcat for more information | 消息解析出错 |
| 871317 | Target user cannot be yourself. | 操作目标用户不能是自己 |
| 871318 | Illegal message content. | 不合法的消息体,出现这个问题可能是由于上层没有参照集成文档进行混淆配置导致的,关于jmessage的混淆配置见集成指南 |
| 871319 | Create ForwardMessage failed | 创建转发消息失败,具体原因见logcat打印 |
| 871320 | Set message HaveRead status failed. | 将消息标记为已读时出现问题,可能这条消息已经是已读状态,或者这条消息本身不是接受类型的消息 |
| 871321 | Get receipt details failed. | 获取未回执详情失败,只有消息的发送者可以查询消息的未回执详情 |
| 871322 | Get receipt details failed. | 获取未回执详情失败,这条消息尚未成功发送,只有成功发送的消息可以查询未回执详情 |
| 871323 | Chatroom not exist. | 请求的聊天室信息未找到,该聊天室不存在 |
| 871324 | Illegal message content type, when send message. | 发送消息时消息体类型不合法,注意eventNotification和prompt类型的消息体不能发送 |
| 871325 | Illegal message status. only created or send_failed message can be sent. | 发送消息时消息状态不合法,只有消息状态为创建和发送失败的消息可以被发送 |
| 871326 | unsupported operation. | 不支持的操作,例如聊天室撤回消息 |
| 871327 | operation is cancelled | 操作已被取消,上层调用取消接口(消息发送取消,附件下载取消),取消成功后返回此错误码 |
| 871402 | Upload file failed.auth error. | 文件上传失败 |
| 871403 | Upload file failed. | 文件上传失败 |
| 871404 | Download file failed. | 文件下载失败 |
| 871501 | Push register error,appkey and appid not match. | appkey与包名不匹配或者token无效 |
| 871502 | Push register error,invalid appkey. | appKey无效。请检查 AndroidManifest.xml 里的 appKey 配置,它必须是从 JPush 控制台创建应用得到的。 |
| 871503 | Push register error,appkey not matches platform | appKey与平台不匹配。有可能在 JPush 控制台上,未配置此 appKey 支持 Android 平台。 |
| 871504 | Push register not finished. | Push 注册未完成,请稍后重试。如果持续出现这个问题,可能你的 JPush 配置不正确。 |
| 871505 | Push register error,package not exists. | Push 注册失败,对应包名在控制台上不存在。 |
| 871506 | Push register error,invalid IMEI. | Push 注册失败,设备IMEI不合法 |
JMRTC Android
| Code | Error Message | 说明 |
|---|---|---|
| 0 | ok | 成功 |
| 872100 | Jmrtc engine init failed. appkey is empty. | 音视频引擎初始化失败,appkey为空 |
| 872101 | Jmrtc engine init failed. due to some error occurs . see logcat for more detail. | 音视频引擎由于一些问题初始化失败,详情请看日志 |
| 872102 | Jmrtc engine init failed. due to network exception. | 音视频引擎初始化失败,由于网络异常造成 |
| 872103 | Jmrtc engine init failed. due to server return error. | 音视频引擎初始化失败,由于服务器端返回内容错误造成 |
| 872104 | Jmrtc engine init failed. due to server internal error. | 音视频引擎初始化失败,由于服务器端内部错误造成 |
| 872105 | Jmrtc engine init failed. due to required permission not granted. | 音视频引擎初始化失败,由于需要的权限没有获取成功造成 |
| 872106 | Jmrtc engine have not init yet. | 音视频引擎还未初始化 |
| 872001 | Can not send %s signaling message . state error. cur state is %s. | 状态机当前状态不能发起此行为 |
| 872002 | State time out. cur state is %s. will return to idle state immediately. | 状态机状态超时,将回到idle状态 |
| 872003 | Invite user failed. user %s is already in chat. | 邀请用户失败,用户已在聊天频道中 |
| 872004 | Received a signaling message but engine not init yet. should init engine first. | 收到信令,但当前引擎处于未初始化状态,先进行初始化操作 |
若以上列表中没有找到对应的错误码,可查看服务器端错误码
相关文档
- iOS SDK 错误码
- 服务器端错误码
