Skip to content

Connection issue with model AC5659 firmware 2.0.0 #105

@NederBelg

Description

@NederBelg

Hi,
I get a connection error for protocol http and coap, see message below.
Can you help me?
Kind regards,
Ad

MacMini001:~ ad$ /Users/ad/Library/Python/3.9/bin/airctrl --ipaddr 192.168.178.12 --protocol http
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/ad/Library/Python/3.9/bin/airctrl", line 8, in
sys.exit(main())
File "/Users/ad/Library/Python/3.9/lib/python/site-packages/pyairctrl/airctrl.py", line 201, in main
c = HTTPAirCli(device["ip"])
File "/Users/ad/Library/Python/3.9/lib/python/site-packages/pyairctrl/airctrl.py", line 116, in init
super().init(HTTPAirClient(host, debug))
File "/Users/ad/Library/Python/3.9/lib/python/site-packages/pyairctrl/http_client.py", line 111, in init
self.load_key()
File "/Users/ad/Library/Python/3.9/lib/python/site-packages/pyairctrl/http_client.py", line 159, in load_key
self._get_key()
File "/Users/ad/Library/Python/3.9/lib/python/site-packages/pyairctrl/http_client.py", line 122, in _get_key
with urllib.request.urlopen(req) as response:
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 517, in open
response = self._open(req, data)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1375, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1349, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 61] Connection refused>
MacMini001:~ ad$ /Users/ad/Library/Python/3.9/bin/airctrl --ipaddr 192.168.178.12 --protocol coap
Unexpected error:'NoneType' object has no attribute 'payload'

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