gizmo385 / discord.clj

A Clojure library for creating Discord bots
MIT License
45 stars 14 forks source link

Bot getting disconnected and not reconnecting #20

Closed avallark closed 3 years ago

avallark commented 4 years ago

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.

gizmo385 commented 3 years ago

Fixed in #25 (thanks @bjagg 👍)