Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimeoutError: timed out #29

Open
sal-6 opened this issue Jul 25, 2023 · 0 comments
Open

TimeoutError: timed out #29

sal-6 opened this issue Jul 25, 2023 · 0 comments

Comments

@sal-6
Copy link

sal-6 commented Jul 25, 2023

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'}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant