Type/to search
0
Follow
0
Followers
Cách xử lý lỗi 504
Help
Created 2018-06-27 21:52:54  
 2
 1957

Như sau:

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 -->

Điều này đã xảy ra rất nhiều lần (bao gồm cả lỗi 502), và tôi đã sử dụng chiến lược của py,try...except...Không thể xử lý được, robot sẽ chỉ cần tháo dây.

Related Recommendations
Comment
All comments (2)

    懂了,那是不是GetAccount之类的其他访问也做一下空值容错比较好?

    8 years ago

    导致机器人 停止的原因应该是 GetTicker 访问 返回了 空值, 导致 后面使用这个 空值的 属性 引起的报错 停止。
    对 GetTicker 做下 容错 处理 , 比如 ticker = GetTicker() , ticker 获取到 空值了 , 就重新 获取一下。
    (机器人 程序 如果有 运行时 错误,会停止 ,并不是掉线。GetTicker: 504: <html> <head><title>504 Gateway Time-out</ 这个报错日志信息 , 上面应该还有一条信息。)

    8 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)