TapoP100: Invalid Request or Credentials with p110
I get the “Invalid Request or Credentials” error in login() when I try to login in my p110. I checked credentials, I tried changing psw, I tried removing the plug from the tapo app ad re-adding it. Is anyone having the same problem? What could it be? Firmware v. 1.1.6 Build 221114 Rel. 203339, Is this supported? Thanks guys.
Error:
`Traceback (most recent call last):
  File "/home/filippo/.local/lib/python3.10/site-packages/PyP100/PyP100.py", line 168, 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 "/home/filippo/pythonDir/prova.py", line 7, in <module>
    p110.login()
  File "/home/filippo/.local/lib/python3.10/site-packages/PyP100/PyP100.py", line 172, in login
    raise Exception(f"Error Code: {errorCode}, {errorMessage}")
Exception: Error Code: -1501, Invalid Request or Credentials`
About this issue
- Original URL
 - State: open
 - Created a year ago
 - Comments: 16 (1 by maintainers)
 
Allright, I found something that fixed it for me at least: Reinstall PyP100 and use an older version, for me 0.0.25 is working like a charm.
pip install --force-reinstall -v “PyP100==0.0.25”
Solved: revert to previous time parameter in login function Payload = { “method”:“login_device”, “params”:{ “password”: p100.encodedPassword, “username”: p100.encodedEmail }, “requestTimeMils”: int(round(time.time() * 1000)), }
Before was “requestTimeMils”: 0, to solve -1501 error instead now is the problem
I hope the developer change and test this soon 😛
Still experiencing this issue as of today.
I dismantled one of my bulbs and gained access to its uart, but have had minimal luck getting any information out of it.
I may try to man in the middle communication between the app and my light this weekend.
If any further information is required I will do my best to provide it.