Skip to content

No connection could be made because the target machine actively refused it AC2729 #91

@Olgidos

Description

@Olgidos

I have set up my AC2729 through the mobile app and now want to check the data. But I get the following error (Windows 10):

--ipaddr 192.168.178.43
Exchanging secret key with the device ...
Traceback (most recent call last):
File "c:\users\theolg\appdata\local\programs\python\python39\lib\urllib\request.py", line 1346, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "c:\users\theolg\appdata\local\programs\python\python39\lib\http\client.py", line 1253, in request
self._send_request(method, url, body, headers, encode_chunked)
File "c:\users\theolg\appdata\local\programs\python\python39\lib\http\client.py", line 1299, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "c:\users\theolg\appdata\local\programs\python\python39\lib\http\client.py", line 1248, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "c:\users\theolg\appdata\local\programs\python\python39\lib\http\client.py", line 1008, in _send_output
self.send(msg)
File "c:\users\theolg\appdata\local\programs\python\python39\lib\http\client.py", line 948, in send
self.connect()
File "c:\users\theolg\appdata\local\programs\python\python39\lib\http\client.py", line 919, in connect
self.sock = self._create_connection(
File "c:\users\theolg\appdata\local\programs\python\python39\lib\socket.py", line 843, in create_connection
raise err
File "c:\users\theolg\appdata\local\programs\python\python39\lib\socket.py", line 831, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\theolg\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\theolg\appdata\local\programs\python\python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\TheOlg\AppData\Local\Programs\Python\Python39\Scripts\airctrl.exe_main
.py", line 7, in
File "c:\users\theolg\appdata\local\programs\python\python39\lib\site-packages\pyairctrl\airctrl.py", line 444, in main
c = HTTPAirCli(device["ip"])
File "c:\users\theolg\appdata\local\programs\python\python39\lib\site-packages\pyairctrl\airctrl.py", line 100, in init
self._client = HTTPAirClient(host, debug)
File "c:\users\theolg\appdata\local\programs\python\python39\lib\site-packages\pyairctrl\http_client.py", line 108, in init
self.load_key()
File "c:\users\theolg\appdata\local\programs\python\python39\lib\site-packages\pyairctrl\http_client.py", line 156, in load_key
self._get_key()
File "c:\users\theolg\appdata\local\programs\python\python39\lib\site-packages\pyairctrl\http_client.py", line 119, in _get_key
with urllib.request.urlopen(req) as response:
File "c:\users\theolg\appdata\local\programs\python\python39\lib\urllib\request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "c:\users\theolg\appdata\local\programs\python\python39\lib\urllib\request.py", line 517, in open
response = self._open(req, data)
File "c:\users\theolg\appdata\local\programs\python\python39\lib\urllib\request.py", line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "c:\users\theolg\appdata\local\programs\python\python39\lib\urllib\request.py", line 494, in _call_chain
result = func(*args)
File "c:\users\theolg\appdata\local\programs\python\python39\lib\urllib\request.py", line 1375, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "c:\users\theolg\appdata\local\programs\python\python39\lib\urllib\request.py", line 1349, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [WinError 10061] No connection could be made because the target machine actively refused it>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions