Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error in encoding password #1

Closed
petrleocompel opened this issue Apr 16, 2023 · 0 comments
Closed

Error in encoding password #1

petrleocompel opened this issue Apr 16, 2023 · 0 comments
Assignees

Comments

@petrleocompel
Copy link
Owner

  File "/Users/msidorov/test.py", line 6, in <module>
    axpro.disarm()
  File "/usr/local/lib/python3.11/site-packages/hikaxpro.py", line 208, in disarm
    return self._base_json_request(f"http://{self.host}{consts.Endpoints.Alarm_Disarm.replace('{}', sid)}",
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/hikaxpro.py", line 168, in _base_json_request
    response = self.make_request(endpoint, method, is_json=True, data=data)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/hikaxpro.py", line 302, in make_request
    response = self.make_request(endpoint, method, data, is_json)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/hikaxpro.py", line 302, in make_request
    response = self.make_request(endpoint, method, data, is_json)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/hikaxpro.py", line 302, in make_request
    response = self.make_request(endpoint, method, data, is_json)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  [Previous line repeated 125 more times]
  File "/usr/local/lib/python3.11/site-packages/hikaxpro.py", line 301, in make_request
    self.connect()
  File "/usr/local/lib/python3.11/site-packages/hikaxpro.py", line 106, in connect
    encoded_password = self.encode_password(params)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/hikaxpro.py", line 88, in encode_password
    if session_cap.is_irreversible:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
       
       
       
       
test.py:
from hikaxpro import HikAxPro

axpro = HikAxPro("", "*********", ")")

# returns 'True or False'
axpro.disarm()
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant