grm / py-smart-gardena

Library to interact with gardena smart system
MIT License
8 stars 5 forks source link

Unexpected JSONDecodeError Excepetion in update_locations since 2020/10/23 #73

Open JoeKN2 opened 3 years ago

JoeKN2 commented 3 years ago

Hi, I used this package since months, but since yesterday it stopped working. I am using the latest version py-smart-gardena-0.7.10. OS: Raspbian GNU/Linux 9 (stretch) The exception I get is: File "/usr/local/sbin/GardenaInterfaceService.py", line 31, in initSmartSystem smart_system.update_locations() File "/usr/local/lib/python3.8/site-packages/gardena/smart_system.py", line 209, in update_locations response_data = self.call_smart_system_get(f"{self.SMART_HOST}/v1/locations") File "/usr/local/lib/python3.8/site-packages/gardena/smart_system.py", line 180, in __call_smart_system_get if self.response_has_errors(response): File "/usr/local/lib/python3.8/site-packages/gardena/smart_system.py", line 159, in response_has_errors r = response.json() File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 898, in json return complexjson.loads(self.text, **kwargs) File "/usr/local/lib/python3.8/json/init__.py", line 357, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Did Garadena change the interface?

JoeKN2 commented 3 years ago

Issue was caused by Gardena, in Server side. They fixed it and it is working again. Please close this issue.

stromnet commented 3 years ago

Seems to have happened again :/ Have been down all day long here.