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

cloudctrl provisioning fails #106

Open
kanongil opened this issue Nov 12, 2024 · 0 comments
Open

cloudctrl provisioning fails #106

kanongil opened this issue Nov 12, 2024 · 0 comments

Comments

@kanongil
Copy link

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