错误码说明
响应结构
所有接口返回统一的响应结构,业务错误通过 info.code 标识:
{
"errorCode": 1,
"info": {
"code": "error.50001",
"description": "Site not found"
},
"body": null,
"successful": false
}
| 字段 | 说明 |
|---|---|
| errorCode | 0:成功;1:失败 |
| info.code | 错误码,格式 error.<编号> |
| info.description | 错误描述 |
| successful | 是否成功 |
错误码分类
根据业务不同会分配不同的错误码段
| 类别 | 说明 |
|---|---|
| 设备类 | 设备离线、权限、类型不正确等 |
| 业务类 | 根据不同的业务进行定义 |
设备类
| 错误码 | 描述 | 说明 |
|---|---|---|
| error.70006 | Device not online | 设备不在线 |
| error.70007 | You do not have permission for this device | 无权查询/操作该设备 |
| error.70011 | The serial number and the check code do not match | SN与CheckCode不匹配 |
业务类
账户相关
| 错误码 | 描述 | 说明 |
|---|---|---|
| error.45001 | Account or current password is invalid | 账户名或当前密码错误 |
| error.45002 | New password does not meet the password policy | 新密码不符合规则 |
| error.45003 | New password must be different from current password | 新密码不能与当前密码相同 |
| error.45004 | Too many password reset attempts. Please try again after 24 hours. | 密码重置次数过多,请24小时后重试 |
| error.40019 | topic not access | 主题不存在或无权限访问 |
设备控制
| 错误码 | 描述 | 说明 |
|---|---|---|
| error.46101 | Not a storage inverter | 非储能逆器 |
| error.46102 | No battery connected | 储能逆变器未接电池 |
| error.46103 | Invalid control code | 控制参数代码无效 |
控制查询
| 错误码 | 描述 | 说明 |
|---|---|---|
| error.42003 | Record not found | 记录不存在 |
充电桩
| 错误码 | 描述 | 说明 |
|---|---|---|
| error.47101 | Current control mode: independent operation. This command is supported only in inverter control mode | 充电桩处于独立运行模式,不能下发充电模式 |
| error.47102 | Charge mode not allowed in current state | 充电桩非待机状态,不允许切换充电模式 |
| error.47103 | Charging is active. Exit the current charge mode first | 充电进行中,需先退出当前充电模式 |
| error.47104 | Invalid charge mode | chargeMode 参数无效,仅支持 FAST、GREEN、SCHEDULE |
| error.47301 | Time group configuration is incomplete | 时间组配置不完整 |
| error.47302 | Invalid time group 1 start time | 时间组 1 开始时间无效 |
| error.47303 | Time groups overlap | 时间组重叠 |
| error.47304 | Invalid time group charge mode | 时间组充电模式无效,仅支持 FAST 或 GREEN |
| error.47306 | Invalid time group ID | timeGroupId 无效,仅支持 1 和 2 |
| error.47307 | Duplicate time group ID | timeGroupId 重复 |
| error.47308 | Invalid time group 1 end time | 时间组 1 结束时间无效 |
| error.47309 | Invalid time group 2 start time | 时间组 2 开始时间无效 |
| error.47310 | Invalid time group 2 end time | 时间组 2 结束时间无效 |
| error.47311 | No EV charger connected to the inverter | 目标逆变器未接入充电桩 |
| error.47312 | Invalid time group enable flag | enable 取值无效,仅支持 0 或 1 |
| error.47313 | Incomplete optional time group configuration | 禁用时间组的可选字段不完整 |
| error.47701 | Current control mode: inverter control. This command is supported only in independent operation mode | 充电桩处于逆变器控制模式,仅独立运行模式支持该指令 |
| error.47702 | Independent charging not allowed in current state | 充电桩非待机状态,不允许开始充电 |
| error.47703 | Stop current charging first | 充电桩已在充电,需先停止当前充电 |