BallAerospace / python-ballcosmos

Python Support for Ball Aerospace COSMOS v4
Other
18 stars 4 forks source link

TimeoutError: timed out #29

Open sal-6 opened 1 year ago

sal-6 commented 1 year ago

I've configured the following in the system.txt file:

PORT CTS_API 7777 PORT TLMVIEWER_API 7778 PORT CTS_PREIDENTIFIED 7779

When the packet view is opened, values are being updated and the status tab in the command and telemetry server shows it number of requests being incremented, I assume by the packet viewer. When I attempt to perform a 'tlm' call from the python api I get the following error message:

Traceback (most recent call last): File "C:\Users\XXX\Documents\venv\lib\site-packages\ballcosmos\connection.py", line 168, in make_request response = self._connection.getresponse() File "C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1368, in getresponse response.begin() File "C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 317, in begin version, status, reason = self._read_status() File "C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 278, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\socket.py", line 705, in readinto return self._sock.recv_into(b) TimeoutError: timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Users\XXX\Documents\ball_cosmos.py", line 7, in tlm("UUT PAYLOAD LAT_DEC") File "C:\Users\XXX\Documents\venv\lib\site-packages\ballcosmos\telemetry.py", line 27, in tlm return ballcosmos.CTS.write("tlm", *args) File "C:\Users\XXX\Documents\venv\lib\site-packages\ballcosmos\connection.py", line 99, in write response = self.make_request(request, first_try) File "C:\Users\XXX\Documents\venv\lib\site-packages\ballcosmos\connection.py", line 179, in make_request raise ConnectionError( ballcosmos.connection.ConnectionError: failed to make request: {'method': 'POST', 'url': '/', 'body': '{"jsonrpc": "2.0", "method": "tlm", "params": ["CUBE PAYLOAD LAT_DEC"], "id": 1}', 'headers': {'Content-Type': 'application/json-rpc', 'X_CSRF_TOKEN': 'SuperSecret'}}