Skip to content

self.websocket.ping() unhandled exception #44

Description

@d0hnuts

`Unhandled exception in thread started by <bound method Bot._keep_active of <mattermost_bot.bot.Bot object at 0x7f8ec067f588>>
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/mattermost_bot/bot.py", line 43, in _keep_active
    self._client.ping()

  File "/usr/local/lib/python3.5/dist-packages/mattermost_bot/mattermost.py", line 215, in ping
    self.websocket.ping()
  File "/usr/lib/python3/dist-packages/websocket/_core.py", line 280, in ping
    self.send(payload, ABNF.OPCODE_PING)
  File "/usr/lib/python3/dist-packages/websocket/_core.py", line 239, in send
    return self.send_frame(frame)
  File "/usr/lib/python3/dist-packages/websocket/_core.py", line 264, in send_frame
    l = self._send(data)
  File "/usr/lib/python3/dist-packages/websocket/_core.py", line 425, in _send
    return send(self.sock, data)
  File "/usr/lib/python3/dist-packages/websocket/_socket.py", line 109, in send
    raise WebSocketConnectionClosedException("socket is already closed.")
websocket._exceptions.WebSocketConnectionClosedException: socket is already closed.`

On both servers we get this filling up our logs, for now we catch it but thought you should know.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions