gizmo385/discord.clj

Bot getting disconnected and not reconnecting

avallark opened this issue · 1 comments

My bot running on my prod machine, once disconnected stays offline forever

[discord.gateway:111] - Event of Type: :reconnect
[discord.gateway:258] - Closing Gateway websocket, not reconnecting (1001).
Exception in thread "async-dispatch-1" org.eclipse.jetty.websocket.api.WebSocketException: RemoteEndpoint unavailable, current state [CLOSED], expecting [OPEN or CONNECTED]
        at org.eclipse.jetty.websocket.common.WebSocketSession.getRemote(WebSocketSession.java:299)

Once this happens, it would be nice if we could periodically try to reconnect and go back online when you could.

Fixed in #25 (thanks @bjagg 👍)