更新时间:2021-07-27 GMT+08:00
分享

错误信息回调

错误信息回调使用的接口为CvrErrCallback,该接口包含成员函数onErrMessage(string errCode, string errMessage)。

void onErrMessage(string errCode, string errMessage)

注册该方法后,SDK内部识别到错误时,会通过该方法反馈错误信息。入参如下:
  • errCode : 错误代号或简要的错误信息。
  • errMessage : 具体的错误信息。
表1 错误场景

errCode

errMessage

描述

处理措施

TOKEN_NULL

IamToken is not obtained.

未获取到IAM TOKEN

请检查网络是否可以访问到IAM服务,且检查账号密码是否正确。

CVR.0005

Device ID is error. It can only contain [a-zA-Z0-9_-].

设备ID格式错误,只允许输入小写英文,数字和-

请更换设备ID

CVR.0009

Project ID is error. It can only contain [a-f0-9-]

项目ID格式错误,只允许输入小写英文a-f,数字和-

请确认传入的项目ID是否正确

CVR.0010

Application ID is error. It can only contain [a-f0-9-].

应用ID格式错误,只允许输入小写英文,数字和-

请确认传入的应用ID是否正确

CVR.0012

The resource id(master id, application id or node id) is not found.

指定资源ID错误,未找到(集群ID,应用ID,云服务器ID)

请确认传入的资源ID是否正确

CVR.0013

The application has no idle servers with plugins installed.

指定应用下无闲置云服务器

当前无可用云服务器,请稍后再试

CVR.0016

This device is forbidden in this application.

指定应用的连接策略禁止您的设备连接

请修改应用的连接策略

CVR.0030

Device brand is error. It can only contain [a-zA-Z0-9 _-]

设备品牌格式错误,只允许输入英文大小写,数字和空格_-

请确认设备品牌是否正确

CVR.0036

Forbidden, project_id is error.

鉴权失败,项目ID错误

请确认传入的项目ID是否是API调用区域的

CVR.0041

Generate linked token failed.

连接Token生成失败

内部错误,请稍后重试或联系技术支持

CVR.0060

System error, please try again later or contact customer service.

系统错误,请稍后重试或联系客服

请稍后重试或联系技术支持

CVR.0195

Location is not formatted correctly.

调度区域传参错误

请确认传入的调度区域是否正确

CVR.0196

No idle servers exists under regions or available zones of location.

指定location中区域或边缘小站下无闲置云服务器

请确认传入的调度区域是否正确

CVR.0258

Device type is error. It can only be [pc,mobile,vr,ideahub].

设备类型错误,只允许输入[pc,mobile,vr,ideahub]

请确认传入的设备类型是否正确

CVR.0259

Protocol type is error. It can only be [udp,webrtc,websocket].

协议参数错误,仅支持[udpwebrtc,websocket]

请确认传入的协议类型是否正确

CVR.0260

Application user is error. It can only contain [a-zA-Z0-9_].

应用使用用户格式错误,只允许输入英文大小写,数字和._-

请确认传入的应用使用用户格式是否正确

CVR.0262

The current user has a render task being dumped under the specified application. Please reconnect after the dump is complete.

当前用户在指定应用下存在一个转储中的渲染任务,请等待转储完成后重新连接

请等待转储完成后重新连接

CVR.0263

The current user or the current device has a render task running under the specified application. Please stop the task and then reconnect. Task id is %(task_id)s.

当前用户或当前设备在指定应用下存在一个渲染任务,请先停止这个任务后重新连接,任务ID为:(task_id)

请停止任务后重新连接

CVR.0264

Start 3D application failed. Please reconnect.

启动3D应用失败,请重新连接

请重新连接

CVR.0282

Application launch args is not formatted correctly.

应用启动参数格式错误

请确认传入的应用启动参数格式是否正确

分享:

    相关文档

    相关产品