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

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

Open
JoeKN2 opened this issue Oct 24, 2020 · 2 comments
Open

Comments

@JoeKN2
Copy link

JoeKN2 commented Oct 24, 2020

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
Copy link
Author

JoeKN2 commented Oct 26, 2020

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

@stromnet
Copy link
Contributor

stromnet commented Jul 7, 2021

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

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

2 participants