差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 后一修订版 两侧同时换到之后的修订记录 | ||
im:other:errorcode:restapi [2018/12/25 09:38] she |
im:other:errorcode:restapi [2020/04/13 04:41] allenwang |
||
---|---|---|---|
行 14: | 行 14: | ||
建议对 APP 自己的服务器端调用的环信 REST API 结果做容错处理。比如要 catch 接口调用返回的异常,对于 timeout 这样的错误应该做重试。对于系统级别错误或重试后仍旧出错,应该记录到系统日志,并及时报警提示运维人员做补救措施,如人工补发。 | 建议对 APP 自己的服务器端调用的环信 REST API 结果做容错处理。比如要 catch 接口调用返回的异常,对于 timeout 这样的错误应该做重试。对于系统级别错误或重试后仍旧出错,应该记录到系统日志,并及时报警提示运维人员做补救措施,如人工补发。 | ||
- | ===== 错误码 索引表(一)===== | + | ===== 索引 错误状态码===== |
^HTTP 返回码(Status Code) ^说明(Description)^ | ^HTTP 返回码(Status Code) ^说明(Description)^ | ||
行 31: | 行 31: | ||
|504|(网关超时)服务器作为网关或代理,但是没有及时从上游服务器收到请求。| | |504|(网关超时)服务器作为网关或代理,但是没有及时从上游服务器收到请求。| | ||
- | ===== 错误码 索引表(二)===== | + | =====索引 错误结果说明 ===== |
^HTTP Status Code ^Error ^Error Description ^可能原因^ | ^HTTP Status Code ^Error ^Error Description ^可能原因^ | ||
行 62: | 行 62: | ||
|403||"can not join this group, reason:user %s has joined too many groups/chatroom!"|用户加入群组或聊天室数超过了限制。| | |403||"can not join this group, reason:user %s has joined too many groups/chatroom!"|用户加入群组或聊天室数超过了限制。| | ||
|403||"this appKey has create too many groups/chatrooms!"|appkey下创建的群组或聊天室数量以达到限制。| | |403||"this appKey has create too many groups/chatrooms!"|appkey下创建的群组或聊天室数量以达到限制。| | ||
+ | |403|||没有开通音视频增值服务调用接口失败| | ||
|404|organization_application_not_found|"Could not find application for hx/hxdeo2 from URI: hx/hxdeo2/token"|hx/hxdeo2这个设置不正确或不存在,或baseurl集群设置错误(只针对vip集群的appkey),正确的是orgname/appname,即appkey的"#"换成"/";| | |404|organization_application_not_found|"Could not find application for hx/hxdeo2 from URI: hx/hxdeo2/token"|hx/hxdeo2这个设置不正确或不存在,或baseurl集群设置错误(只针对vip集群的appkey),正确的是orgname/appname,即appkey的"#"换成"/";| | ||
|404|service_resource_not_found|“Service resource not found” |URL指定的资源不存在,如用户相关接口是用户不存在,群组相关接口是群组不存在,聊天室相关接口是聊天室不存在 | | |404|service_resource_not_found|“Service resource not found” |URL指定的资源不存在,如用户相关接口是用户不存在,群组相关接口是群组不存在,聊天室相关接口是聊天室不存在 | | ||
行 67: | 行 68: | ||
|404|||删除的username不存在,若用户列表存在该username,则可使用user的uuid代替username删除;| | |404|||删除的username不存在,若用户列表存在该username,则可使用user的uuid代替username删除;| | ||
|404|storage_object_not_found|"Failed to find chat message history download url for appkey: hx#hxdemo2, time: 2018020912"|对应的时间没有聊天记录,如确定有聊天记录,请提交工单反馈环信技术支持团队确认| | |404|storage_object_not_found|"Failed to find chat message history download url for appkey: hx#hxdemo2, time: 2018020912"|对应的时间没有聊天记录,如确定有聊天记录,请提交工单反馈环信技术支持团队确认| | ||
- | |413|Request Entity Too Large|“Request Entity Too Large” |请求体过大,如上传文件时文件过大;或发送消息时消息体过大,请求体如果超过5kb会导致413错误,需要拆成几个更小的请求体重试,同时用户消息+扩展字段的长度在40k字节以内 | | + | |413|Request Entity Too Large|“Request Entity Too Large” |请求体过大,如上传文件时文件过大;或发送消息时消息体过大,请求体如果超过5kb会导致413错误,需要拆成几个更小的请求体重试,同时用户消息+扩展字段的长度在4k字节以内 | |
|415|web_application|"Unsupported Media Type" |请求体的类型不支持,请检查header是否添加"Content-Type":"application/json",body是否符合标准的JSON格式,再确认header中是否还有非接口需要的参数,可以舍去| | |415|web_application|"Unsupported Media Type" |请求体的类型不支持,请检查header是否添加"Content-Type":"application/json",body是否符合标准的JSON格式,再确认header中是否还有非接口需要的参数,可以舍去| | ||
|429|resource_limited|"You have exceeded the limit of the community edition. Please upgrade to the enterprise edition." |说明触发了社区版限制,[[http://www.easemob.com/pricing/im|社区版限制介绍]],如您已开通企业版,请联系环信商务处理| | |429|resource_limited|"You have exceeded the limit of the community edition. Please upgrade to the enterprise edition." |说明触发了社区版限制,[[http://www.easemob.com/pricing/im|社区版限制介绍]],如您已开通企业版,请联系环信商务处理| |