Closed jkubNTIA closed 9 years ago
I just print out the exception when the sensor disconnects. I also print out the DataMessage before posting this to the database. Neither are error messages as such. However, they shoud be written out to the log file.
Streaming seems to work with the new master branch. However, I do see the following in the gunicorn terminal window (no issues on the browser, just these messages on the terminal window): Traceback (most recent call last): File "/home/jkub/Documents/SpectrumBrowser/flask/DataStreaming.py", line 481, in getSensorData ws.send(sensordata[sensorId]) File "/usr/local/lib/python2.7/dist-packages/geventwebsocket/websocket.py", line 348, in send raise WebSocketError(MSG_SOCKET_DEAD) WebSocketError: Socket is dead
That is just a logging message. It is an expected behavior. It indicates that the web server has closed the socket. I can move it to the log file.
Closing as the implementation has been changed. You will still see a stack trace when the web server navigates away from the streaming page.
Unexpected error: <class 'struct.error'> (<class 'struct.error'>, error('unpack requires a string argument of length 1',), <traceback object at 0x7fafb42c9290>) Traceback (most recent call last): File "DataStreaming.py", line 580, in readFromInput data = bbuf.readByte() File "DataStreaming.py", line 243, in readByte retval = struct.unpack(">b", val)[0] error: unpack requires a string argument of length 1 Closing pub socket