Thread crashes when websocket terminates remotely. #33

Closed
opened 2019-01-01 00:46:42 +00:00 by thrrgilag · 2 comments
thrrgilag commented 2019-01-01 00:46:42 +00:00 (Migrated from gitlab.com)

Following detail while testing was generated as the remote end of the websocket connection was terminated.

ERROR:websocket:error from callback : must be str, not WebSocketConnectionClosedException
  File "/home/thrrgilag/.virtualenvs/pnut-matrix/lib/python3.6/site-packages/websocket/_app.py", line 345, in _callback
    callback(self, *args)
  File "pnut-matrix.py", line 257, in on_error
    logger.debug("on_error: " + error)
DEBUG:root:on_close: ### CLOSED ###

...

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "pnut-matrix.py", line 269, in run
    ws.send(".")
  File "/home/thrrgilag/.virtualenvs/pnut-matrix/lib/python3.6/site-packages/websocket/_app.py", line 153, in send
    if not self.sock or self.sock.send(data, opcode) == 0:
  File "/home/thrrgilag/.virtualenvs/pnut-matrix/lib/python3.6/site-packages/websocket/_core.py", line 250, in send
    return self.send_frame(frame)
  File "/home/thrrgilag/.virtualenvs/pnut-matrix/lib/python3.6/site-packages/websocket/_core.py", line 275, in send_frame
    l = self._send(data)
  File "/home/thrrgilag/.virtualenvs/pnut-matrix/lib/python3.6/site-packages/websocket/_core.py", line 445, in _send
    return send(self.sock, data)
  File "/home/thrrgilag/.virtualenvs/pnut-matrix/lib/python3.6/site-packages/websocket/_socket.py", line 114, in send
    raise WebSocketConnectionClosedException("socket is already closed.")
websocket._exceptions.WebSocketConnectionClosedException: socket is already closed.
Following detail while testing was generated as the remote end of the websocket connection was terminated. <pre> ERROR:websocket:error from callback <function on_error at 0x7f1efd391a60>: must be str, not WebSocketConnectionClosedException File "/home/thrrgilag/.virtualenvs/pnut-matrix/lib/python3.6/site-packages/websocket/_app.py", line 345, in _callback callback(self, *args) File "pnut-matrix.py", line 257, in on_error logger.debug("on_error: " + error) DEBUG:root:on_close: ### CLOSED ### </pre> ... <pre> Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/usr/lib/python3.6/threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "pnut-matrix.py", line 269, in run ws.send(".") File "/home/thrrgilag/.virtualenvs/pnut-matrix/lib/python3.6/site-packages/websocket/_app.py", line 153, in send if not self.sock or self.sock.send(data, opcode) == 0: File "/home/thrrgilag/.virtualenvs/pnut-matrix/lib/python3.6/site-packages/websocket/_core.py", line 250, in send return self.send_frame(frame) File "/home/thrrgilag/.virtualenvs/pnut-matrix/lib/python3.6/site-packages/websocket/_core.py", line 275, in send_frame l = self._send(data) File "/home/thrrgilag/.virtualenvs/pnut-matrix/lib/python3.6/site-packages/websocket/_core.py", line 445, in _send return send(self.sock, data) File "/home/thrrgilag/.virtualenvs/pnut-matrix/lib/python3.6/site-packages/websocket/_socket.py", line 114, in send raise WebSocketConnectionClosedException("socket is already closed.") websocket._exceptions.WebSocketConnectionClosedException: socket is already closed. </pre>
thrrgilag commented 2019-01-01 16:27:37 +00:00 (Migrated from gitlab.com)

mentioned in commit 72237349180aebe14fb718caac2c80ff02caab0e

By Morgan McMillian on 2019-01-01T16:27:37 (imported from GitLab project)

mentioned in commit 72237349180aebe14fb718caac2c80ff02caab0e *By Morgan McMillian on 2019-01-01T16:27:37 (imported from GitLab project)*
thrrgilag commented 2019-01-04 03:52:47 +00:00 (Migrated from gitlab.com)

closed

By Morgan McMillian on 2019-01-04T03:52:47 (imported from GitLab project)

closed *By Morgan McMillian on 2019-01-04T03:52:47 (imported from GitLab project)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: spacenerdmo/pnut-matrix#33
No description provided.