严重问题, 紧急获救:机器人遇异常情况,不继续运行,也不报警, 如何处理?

Author: 老猫爱吃鱼, Created: 2018-06-04 10:04:00, Updated:

严重问题, 紧急获救:机器人遇异常情况(如交易所问题),不会恢复运行,也会不报警, 只能手工重启,请问如何处理? 举例,当出现下列错误(因请求太频繁,交易所返回null)时: 1, 机器人显示为运行状态,实际已经假死. 2, 设置的微信监控报警, 无反应. 请问有什么方法可以catch住这些异常? 避免假死?

2018-06-04 03:31:09 错误 TypeError: cannot read property ‘DealAmount’ of null at _get_step1_amount

2018-06-04 03:31:09 Huobi 错误 GetOrder(5297145308): 429: <html> <head><title>429 Too Many Requests</title></head> <body bgcolor=“white”> <center><h1>429 Too Many Requests</h1></center> <hr><center>openresty</center> </body> </html> <!– a padding to disable MSIE and Chrome friendly error page –> <!– a padding to disable MSIE and Chrome friendly error page –> <!– a padding to disable MSIE and Chrome friendly error page –> <!– a padding to disable MSIE and Chrome friendly error page –> <!– a padding to disable MSIE and Chrome friendly error page –> <!– a padding to disable MSIE and Chrome friendly error page –>


More

小小梦 您这个 报错信息看来, 是在您策略 调用 exchange.GetOrder 函数时 , 交易所接口报错 429 , 返回了 null 数据, 然后你策略 使用 了这个 返回的空值数据, 访问了 其 DealAmount 导致 程序报错 停止, 此时 策略程序 已经停止。 在控制中心 ,点击 机器人 右侧的 “监控” 按钮, 可以监控机器人 异常。 https://dn-filebox.qbox.me/63bd4d664a63b9bdb527c31236b16ccd5fe18c98.png