Tapo P100 issue (
See original GitHub issueHe there.
Just trying to get your Python module working with Tapo P100, and I’m getting the following error messge:
` Traceback (most recent call last): File “/usr/local/lib/python3.6/dist-packages/PyP100/PyP100.py”, line 155, in login self.token = ast.literal_eval(decryptedResponse)[“result”][“token”] KeyError: ‘result’
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File “./p100.py”, line 11, in <module> p100.login() File “/usr/local/lib/python3.6/dist-packages/PyP100/PyP100.py”, line 159, in login raise Exception(f"Error Code: {errorCode}, {errorMessage}") Exception: Error Code: -1501, Invalid Request or Credentials `
I am pretty sure that all info is currect, as can successfully connect from Tapo app. Tried both version from pip and from GitHub with the same result. Don’t know where the problem could be as I’m bad a Python coder However I was able to log in to tpcloud via curl and even see that device, althous it says tht it is offline.
Could you please recommed me what to do?
Thanks in advance.
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (1 by maintainers)
Yes, there are oddities with the password. So far I’ve observed:
The password that alerted me to issue #3 was actually weeks or maybe even months old, so I don’t have any reason to believe it is any kind of periodic sync or caching. I think it never updates. Therefore, any ‘password change’ steps from your testing would be invalid without a reset before testing again.
It’s actually kind of worrying that it is like this, because that’s potentially a security vulnerability right there, especially if your original password was compromised for some reason and you thought that you had safely changed it.
UPD:
Tried to install oldet Python (3.7.0) via pyenv (both local and global) – no luck. Tried to insyall 6.4 – no luck eve in virtual Python environment. Problem at login. Did fresh switch factory reset – no luck. I’m crazy about this. Negotiation seem to work, error arises when login is called.
UPD2
Strange things happening. 😃
So how it works. Very interesting story.