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

JSONDecodeError after P110 firmware update #1

Open
sangimed opened this issue Sep 21, 2022 · 1 comment
Open

JSONDecodeError after P110 firmware update #1

sangimed opened this issue Sep 21, 2022 · 1 comment

Comments

@sangimed
Copy link
Contributor

sangimed commented Sep 21, 2022

PyP100 doesn't seem to like upgrading the P110 FW to 1.0.16 Build 220624 Rel. 171733 (previous version unknown) :

Sending credentials to the plug and creating AES Key and IV for further methods...
Traceback (most recent call last):
  File "/home/myUsername/.local/lib/python3.8/site-packages/requests/models.py", line 971, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 518, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/myUsername/Repositories/rig-smart-switcher/main.py", line 57, in <module>
    main()
  File "/home/myUsername/Repositories/rig-smart-switcher/main.py", line 45, in main
    p110 = init_p110_object()
  File "/home/myUsername/Repositories/rig-smart-switcher/main.py", line 28, in init_p110_object
    p110.login()
  File "/home/myUsername/.local/lib/python3.8/site-packages/PyP100/PyP100.py", line 160, in login
    decryptedResponse = self.tpLinkCipher.decrypt(r.json()["result"]["response"])
  File "/home/myUsername/.local/lib/python3.8/site-packages/requests/models.py", line 975, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
@sangimed sangimed changed the title JSONDecodeError after P110 frimware update JSONDecodeError after P110 firmware update Sep 27, 2022
@sangimed
Copy link
Contributor Author

sangimed commented Sep 27, 2022

Related to fishbigger/TapoP100#79.

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

When branches are created from issues, their pull requests are automatically linked.

1 participant