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

Crash due to bad json returned from Ecobee #45

Closed
jimboca opened this issue Apr 9, 2019 · 1 comment
Closed

Crash due to bad json returned from Ecobee #45

jimboca opened this issue Apr 9, 2019 · 1 comment

Comments

@jimboca
Copy link
Collaborator

jimboca commented Apr 9, 2019

2019-04-09 14:14:49,829 [Controller] [ERROR] Ecobee Controller:reponse:get: Failed to convert to json : Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/home/pi/development/udi-ecobee-poly/pgSession.py", line 66, in response
    json_data = json.loads(response.text)
  File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2019-04-09 14:14:49,866 [Controller] [DEBUG] controller:set_ecobee_st: True=1
2019-04-09 14:14:49,907 [Controller] [ERROR] Exception in thread Controller:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/.local/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 771, in _parseInput
    self.longPoll()
  File "./ecobee-poly.py", line 202, in longPoll
    self.updateThermostats()
  File "./ecobee-poly.py", line 215, in updateThermostats
    thermostats = self.getThermostats()
  File "./ecobee-poly.py", line 446, in getThermostats
    if 'revisionList' in res_data:
TypeError: argument of type 'bool' is not iterable
@jimboca
Copy link
Collaborator Author

jimboca commented Apr 9, 2019

Fixed in 2.1.4

@jimboca jimboca closed this as completed Apr 21, 2019
jimboca added a commit that referenced this issue Apr 22, 2019
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