0
Follow
0
Followers
아래와 같이:
bash
GetTicker: 504: <html> <head><title>504 Gateway Time-out</title></head> <body bgcolor="white"> <center><h1>504 Gateway Time-out</h1></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 -->
이런 상황이 (502 오류를 포함해서) 이미 여러 번 발생했습니다.try...except...이 로봇은 어떻게 해야 하냐면, '그건 내가 처리할 수 없는 문제야'라고 생각하면 됩니다.
Related Recommendations
The grid trading strategyPython streamlined multi-variety MACD trending strategy frameworkin main TypeError: IO() takes at most 3 arguments (5 given)symbol not setGetTicker: 400: {"code": 2, "data": {}, "message": "invalid params"}gateio getdepth 502Decrypt: Secret key decrypt failedGetOrders: 400: {"code":-1121,"msg":"Invalid symbol."}HTTP 403 errorBitcoin trading by using bots
Comment
All comments (2)
导致机器人 停止的原因应该是 GetTicker 访问 返回了 空值, 导致 后面使用这个 空值的 属性 引起的报错 停止。
对 GetTicker 做下 容错 处理 , 比如 ticker = GetTicker() , ticker 获取到 空值了 , 就重新 获取一下。
(机器人 程序 如果有 运行时 错误,会停止 ,并不是掉线。GetTicker: 504: <html> <head><title>504 Gateway Time-out</ 这个报错日志信息 , 上面应该还有一条信息。)
8 years ago
- 1
