最近在使用 slack + hubot 做机器人 但发现长时间(两小时之后) slack 的机器人就会离线了 不知道是不是服务挂在 ddns 下的原因呢?
日志如下:
[Wed May 25 2016 16:42:29 GMT+0800 (CST)] INFO Slack client now connected
[Wed May 25 2016 17:39:13 GMT+0800 (CST)] ERROR Last pong is too old: 10.668
[Wed May 25 2016 17:39:13 GMT+0800 (CST)] INFO Reconnecting in 1000ms
[Wed May 25 2016 17:39:14 GMT+0800 (CST)] INFO Attempting reconnect
[Wed May 25 2016 17:39:14 GMT+0800 (CST)] INFO Connecting...
[Wed May 25 2016 17:39:15 GMT+0800 (CST)] INFO Logged in as bus of Kenshinhu, but not yet connected
[Wed May 25 2016 17:39:18 GMT+0800 (CST)] INFO Slack client now connected
[Wed May 25 2016 17:39:40 GMT+0800 (CST)] INFO Slack client closed, waiting for reconnect
1
witcher42 2016-05-26 13:40:43 +08:00
我也在公司里搞了个 slack hubot ,也是总是掉线,后来我让它翻了个墙,然后好点的时候能保持连接时间长一点,有大概率一天不断,不过每天早上五点我还是会让它重启一下,另外墙比较高的时候翻墙也不太行,最近在考虑部署到墙外去。
|