HTTPError
robertoleonardo opened this issue · 2 comments
Please type any relevant information here
not sure when this started happening, but ha-commander will no longer connect--on any of my 3 machines---to homeassistant. it's been working with my token and this url for months.
any ideas?
Trace Log
``
Traceback (most recent call last):
File "C:\Users\xxxxxxx\AppData\Roaming\FlowLauncher\Plugins\HA-Commander-5.1.1\lib\flox\launcher.py", line 44, in run
results = request_method(*request_parameters) or self.results
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxxxxxx\AppData\Roaming\FlowLauncher\Plugins\HA-Commander-5.1.1\lib\flox_init.py", line 131, in _query
self.query(query)
File "C:\Users\xxxxxxx\AppData\Roaming\FlowLauncher\Plugins\HA-Commander-5.1.1\plugin\main.py", line 53, in query
states = self.client.states()
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxxxxxx\AppData\Roaming\FlowLauncher\Plugins\HA-Commander-5.1.1\plugin\homeassistant.py", line 120, in states
_states = self.request("GET", "states").json()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxxxxxx\AppData\Roaming\FlowLauncher\Plugins\HA-Commander-5.1.1\plugin\homeassistant.py", line 87, in request
response.raise_for_status()
File "C:\Users\xxxxxxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://XXXXXX.com/api/states
</p>
</details>
Hard to say as there could be many things wrong. Double check the PCs are not black listed if you have that enabled.
Also try using Python 3.8 as this plugin was made with that version in mind.
oh my bad. meant to come back and close this issue -- it resolved itself overnight. thanks for a great plug-in!