Hassassistant / OpenMindsAI

64 stars 5 forks source link

Not working. Error in logs #6

Open Jurgenn22 opened 1 year ago

Jurgenn22 commented 1 year ago

Hi,

Hi It doesn't work at the moment. I get the following error in the logs.

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
Jurgenn22 commented 1 year ago

Hi, It was my config, everything works again.

wsjunior1985 commented 1 year ago

Same problem here, what was the problem with your config?

gieljnssns commented 1 year ago

https://github.com/Hassassistant/OpenMindsAI/issues/4#issuecomment-1661728799

Jurgenn22 commented 1 year ago

@wsjunior1985 Hi, It was the config, incorrectly copied piece of the session cookie.

rolfberkenbosch commented 1 year ago

Make sure you comfirmed your account with your email.