Hassassistant / OpenMindsAI

62 stars 4 forks source link

Error #4

Open andiukas opened 1 year ago

andiukas commented 1 year ago

Integration stop working:

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/openmindsai/sensor.py", line 69, in async_ask response = await self._hass.async_add_executor_job(ask, self._session_cookie, self._model, new_query) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/openmindsai/sensor.py", line 31, in ask response_message = response_json[0]["response"]


KeyError: 0
gielk commented 1 year ago

Same for me.

gielk commented 1 year ago

This error originated from a custom integration.

Logger: homeassistant Source: custom_components/openmindsai/sensor.py:31 Integration: openmindsai (documentation) First occurred: 21:35:14 (12 occurrences) Last logged: 21:35:32

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/openmindsai/sensor.py", line 69, in async_ask response = await self._hass.async_add_executor_job(ask, self._session_cookie, self._model, new_query) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/openmindsai/sensor.py", line 31, in ask response_message = response_json[0]["response"]


KeyError: 0
gieljnssns commented 1 year ago

I had this error also. I had to confirm my email in the mindsdb settings menu.