-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
It seems that the hardcoded credentials might have been revoked, as it currently fails when trying to login before doing anything with the id.
> cloudctrl <id> --pair 192.168.1.25
Creating cloud account ...
Logging in with 000000fff0000019
Traceback (most recent call last):
File "/home/gil/.local/bin/cloudctrl", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/gil/.local/share/pipx/venvs/py-air-control/lib/python3.12/site-packages/pyairctrl/cloudctrl.py", line 278, in main
c.load_credentials()
File "/home/gil/.local/share/pipx/venvs/py-air-control/lib/python3.12/site-packages/pyairctrl/cloudctrl.py", line 141, in load_credentials
self._create_account()
File "/home/gil/.local/share/pipx/venvs/py-air-control/lib/python3.12/site-packages/pyairctrl/cloudctrl.py", line 76, in _create_account
self._login()
File "/home/gil/.local/share/pipx/venvs/py-air-control/lib/python3.12/site-packages/pyairctrl/cloudctrl.py", line 49, in _login
with urllib.request.urlopen(req) as response:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/urllib/request.py", line 215, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/urllib/request.py", line 521, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/urllib/request.py", line 630, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/urllib/request.py", line 559, in error
return self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/urllib/request.py", line 492, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "/usr/lib/python3.12/urllib/request.py", line 639, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized
Metadata
Metadata
Assignees
Labels
No labels