IBM / watson-nao-robot

Use a robot to answer queries on financial data by integrating with the IBM Watson Assistant service and IBM Watson Studio
https://developer.ibm.com/patterns/robotic-calculations-and-inference-agent
Apache License 2.0
38 stars 63 forks source link

Error on the Studio when calling the function start_websocket_listener() #42

Closed xaksh closed 4 years ago

xaksh commented 5 years ago

--- request header --- GET /ws/orchestrate HTTP/1.1 Upgrade: websocket Connection: Upgrade Host: nao-robot-ecu.mybluemix.net Origin: http://nao-robot-ecu.mybluemix.net Sec-WebSocket-Key: 01EiDCJmyCoY8Bej+t8lTQ== Sec-WebSocket-Version: 13


--- response header --- HTTP/1.1 101 Switching Protocols Connection: Upgrade Sec-WebSocket-Accept: vT30uk89ioVWKk3kJjgRIh/9lfw= Date: Mon, 30 Sep 2019 06:39:31 GMT X-Global-Transaction-ID: 075554b25d91a323635a7cb3 Upgrade: websocket

error from callback <function on_open at 0x7fe8d93f6c80>: name 'thread' is not defined File "/opt/conda/envs/Python36/lib/python3.6/site-packages/websocket/_app.py", line 345, in _callback callback(self, *args) File "", line 66, in on_open thread.start_new_thread(run, ()) send: b'\x81\x8el\xdd\r/(\x8eU\x0f \xb4~[\t\xb3-j\x02\xb9' error from callback <function on_close at 0x7fe8d93f6d08>: socket is already closed.

Connection is already closed.

File "/opt/conda/envs/Python36/lib/python3.6/site-packages/websocket/_app.py", line 345, in _callback callback(self, *args) File "", line 57, in on_close ws.send("DSX Listen End") File "/opt/conda/envs/Python36/lib/python3.6/site-packages/websocket/_app.py", line 153, in send if not self.sock or self.sock.send(data, opcode) == 0: File "/opt/conda/envs/Python36/lib/python3.6/site-packages/websocket/_core.py", line 253, in send return self.send_frame(frame) File "/opt/conda/envs/Python36/lib/python3.6/site-packages/websocket/_core.py", line 278, in send_frame l = self._send(data) File "/opt/conda/envs/Python36/lib/python3.6/site-packages/websocket/_core.py", line 448, in _send return send(self.sock, data) File "/opt/conda/envs/Python36/lib/python3.6/site-packages/websocket/_socket.py", line 135, in send raise WebSocketConnectionClosedException("socket is already closed.")