Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self.websocket.ping() unhandled exception #44

Open
d0hnuts opened this issue Aug 17, 2017 · 0 comments
Open

self.websocket.ping() unhandled exception #44

d0hnuts opened this issue Aug 17, 2017 · 0 comments

Comments

@d0hnuts
Copy link

d0hnuts commented Aug 17, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant