You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anyone can recommend a best way to handle this exception "websocket._exceptions.WebSocketConnectionClosedException"? I am trying to use this in my django app, everything is fine but as long as the vendor shutdown the signalr, my django just throws out a bunch of exception with web socket connection closed.
The other thing is that, these exceptions even throws without being trigger from my django.
Here is the log:
2018-11-07T08:53:03Z <Greenlet "Greenlet-0" at 0x1105bed48: wrapped_listener> failed with WebSocketConnectionClosedException
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 716, in gevent._greenlet.Greenlet.run
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/signalr/_connection.py", line 53, in wrapped_listener
listener()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/signalr/transports/_ws_transport.py", line 42, in _receive
for notification in self.ws:
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_core.py", line 109, in iter
yield self.recv()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_core.py", line 302, in recv
opcode, data = self.recv_data()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_core.py", line 319, in recv_data
opcode, frame = self.recv_data_frame(control_frame)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_core.py", line 332, in recv_data_frame
frame = self.recv_frame()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_core.py", line 366, in recv_frame
return self.frame_buffer.recv_frame()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_abnf.py", line 361, in recv_frame
self.recv_header()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_abnf.py", line 309, in recv_header
header = self.recv_strict(2)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/abnf.py", line 396, in recv_strict
bytes = self.recv(min(16384, shortage))
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_core.py", line 441, in _recv
return recv(self.sock, bufsize)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_socket.py", line 94, in recv
"Connection is already closed.")
websocket._exceptions.WebSocketConnectionClosedException: Connection is already closed.
The text was updated successfully, but these errors were encountered:
Anyone can recommend a best way to handle this exception "websocket._exceptions.WebSocketConnectionClosedException"? I am trying to use this in my django app, everything is fine but as long as the vendor shutdown the signalr, my django just throws out a bunch of exception with web socket connection closed.
The other thing is that, these exceptions even throws without being trigger from my django.
Here is the log:
2018-11-07T08:53:03Z <Greenlet "Greenlet-0" at 0x1105bed48: wrapped_listener> failed with WebSocketConnectionClosedException
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 716, in gevent._greenlet.Greenlet.run
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/signalr/_connection.py", line 53, in wrapped_listener
listener()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/signalr/transports/_ws_transport.py", line 42, in _receive
for notification in self.ws:
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_core.py", line 109, in iter
yield self.recv()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_core.py", line 302, in recv
opcode, data = self.recv_data()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_core.py", line 319, in recv_data
opcode, frame = self.recv_data_frame(control_frame)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_core.py", line 332, in recv_data_frame
frame = self.recv_frame()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_core.py", line 366, in recv_frame
return self.frame_buffer.recv_frame()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_abnf.py", line 361, in recv_frame
self.recv_header()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_abnf.py", line 309, in recv_header
header = self.recv_strict(2)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/abnf.py", line 396, in recv_strict
bytes = self.recv(min(16384, shortage))
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_core.py", line 441, in _recv
return recv(self.sock, bufsize)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websocket/_socket.py", line 94, in recv
"Connection is already closed.")
websocket._exceptions.WebSocketConnectionClosedException: Connection is already closed.
The text was updated successfully, but these errors were encountered: