tlyakhov / python-decora_wifi

Python Library for Interacting with Leviton Decora Smart WiFi Switches & Dimmers
MIT License
37 stars 21 forks source link

Rest API stopped working - 504 Gateway Time-out #20

Closed adifelice-godaddy closed 3 years ago

adifelice-godaddy commented 3 years ago
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/admin/git/python-decora_wifi/decora_wifi/__init__.py", line 77, in login
    login_json = Person.login(self, payload)
  File "/Users/admin/git/python-decora_wifi/decora_wifi/models/person.py", line 569, in login
    return session.call_api(api, attribs, 'post')
  File "/Users/admin/git/python-decora_wifi/decora_wifi/__init__.py", line 53, in call_api
    if self.login(self._email, self._password) is None:
  File "/Users/admin/git/python-decora_wifi/decora_wifi/__init__.py", line 77, in login
    login_json = Person.login(self, payload)
  File "/Users/admin/git/python-decora_wifi/decora_wifi/models/person.py", line 569, in login
    return session.call_api(api, attribs, 'post')
  File "/Users/admin/git/python-decora_wifi/decora_wifi/__init__.py", line 61, in call_api
    raise ValueError(msg)
ValueError: myLeviton API call (/Person/login) failed: 504, <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
</body>
</html>
adifelice-godaddy commented 3 years ago

I reached out Leviton support. API seems back online.