When start the aprscot with config containing COT URL = TCP *******, cannot start again with COT URL = UDP
i have 2 different configs one for TCP and second for UDP and start server with one of them depend on the need.
pytak is not installed on my system - cannot be installed it returns some errors which i cannot fix
when i run aprscor -c conf.ini return: and exit
the error:
2023-01-04 11:16:46,531 pytak INFO - COT Dest: udp://239.2.3.1:6969
2023-01-04 11:16:46,531 aprscot - Run: <class 'pytak.classes.CLITool'>
2023-01-04 11:16:46,533 aprscot - Run: <class 'pytak.classes.TXWorker'>
2023-01-04 11:16:46,534 aprscot - Running <class 'aprscot.classes.APRSWorker'>
2023-01-04 11:16:46,534 aprscot - Using APRS-IS server: noam..aprs2.net:14580
2023-01-04 11:16:46,536 aprscot - Run: <class 'pytak.classes.RXWorker'>
2023-01-04 11:16:46,541 aprscot - Complete: <Task finished name='Task-3' coro=<APRSWorker.run() done, defined at /home/ubuntu/.local/lib/python3.8/site-packages/aprscot/classes.py:73> exception=UnicodeError("encoding with 'idna' codec failed (UnicodeError: label empty or too long)")>
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-3' coro=<APRSWorker.run() done, defined at /home/ubuntu/.local/lib/python3.8/site-packages/aprscot/classes.py:73> exception=UnicodeError("encoding with 'idna' codec failed (UnicodeError: label empty or too long)")>
Traceback (most recent call last):
File "/usr/lib/python3.8/encodings/idna.py", line 163, in encode
raise UnicodeError("label empty or too long")
UnicodeError: label empty or too long
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.8/site-packages/aprscot/classes.py", line 83, in run
reader, writer = await asyncio.open_connection(aprs_host, int(aprs_port))
File "/usr/lib/python3.8/asyncio/streams.py", line 52, in open_connection
transport, _ = await loop.create_connection(
File "/usr/lib/python3.8/asyncio/base_events.py", line 986, in create_connection
infos = await self._ensure_resolved(
File "/usr/lib/python3.8/asyncio/base_events.py", line 1365, in _ensure_resolved
return await loop.getaddrinfo(host, port, family=family, type=type,
File "/usr/lib/python3.8/asyncio/base_events.py", line 825, in getaddrinfo
return await self.run_in_executor(
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)
with DEBUG =1 aprscot it seams to work properly even pull the packets to the network
When start the aprscot with config containing COT URL = TCP *******, cannot start again with COT URL = UDP
i have 2 different configs one for TCP and second for UDP and start server with one of them depend on the need.
pytak is not installed on my system - cannot be installed it returns some errors which i cannot fix
when i run aprscor -c conf.ini return: and exit
the error:
2023-01-04 11:16:46,531 pytak INFO - COT Dest: udp://239.2.3.1:6969
2023-01-04 11:16:46,531 aprscot - Run: <class 'pytak.classes.CLITool'>
2023-01-04 11:16:46,533 aprscot - Run: <class 'pytak.classes.TXWorker'>
2023-01-04 11:16:46,534 aprscot - Running <class 'aprscot.classes.APRSWorker'>
2023-01-04 11:16:46,534 aprscot - Using APRS-IS server: noam..aprs2.net:14580
2023-01-04 11:16:46,536 aprscot - Run: <class 'pytak.classes.RXWorker'>
2023-01-04 11:16:46,541 aprscot - Complete: <Task finished name='Task-3' coro=<APRSWorker.run() done, defined at /home/ubuntu/.local/lib/python3.8/site-packages/aprscot/classes.py:73> exception=UnicodeError("encoding with 'idna' codec failed (UnicodeError: label empty or too long)")>
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-3' coro=<APRSWorker.run() done, defined at /home/ubuntu/.local/lib/python3.8/site-packages/aprscot/classes.py:73> exception=UnicodeError("encoding with 'idna' codec failed (UnicodeError: label empty or too long)")>
Traceback (most recent call last):
File "/usr/lib/python3.8/encodings/idna.py", line 163, in encode
raise UnicodeError("label empty or too long")
UnicodeError: label empty or too long
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.8/site-packages/aprscot/classes.py", line 83, in run
reader, writer = await asyncio.open_connection(aprs_host, int(aprs_port))
File "/usr/lib/python3.8/asyncio/streams.py", line 52, in open_connection
transport, _ = await loop.create_connection(
File "/usr/lib/python3.8/asyncio/base_events.py", line 986, in create_connection
infos = await self._ensure_resolved(
File "/usr/lib/python3.8/asyncio/base_events.py", line 1365, in _ensure_resolved
return await loop.getaddrinfo(host, port, family=family, type=type,
File "/usr/lib/python3.8/asyncio/base_events.py", line 825, in getaddrinfo
return await self.run_in_executor(
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)
with DEBUG =1 aprscot it seams to work properly even pull the packets to the network