ha_strava icon indicating copy to clipboard operation
ha_strava copied to clipboard

Errors in HA log

Open pcl101 opened this issue 4 years ago • 5 comments

Installation went fine. But now I got these errors in my HA log and sensor data does not update.

HA 2020.12.7 Supervisor on Ubuntu 18 / docker

IndexError: list index out of range 2021-01-03 16:23:57 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/ha_strava/sensor.py", line 403, in strava_data_update_event_handler self._data = event.data["activities"][self._activity_index] IndexError: list index out of range 2021-01-03 16:23:57 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/ha_strava/sensor.py", line 403, in strava_data_update_event_handler self._data = event.data["activities"][self._activity_index] IndexError: list index out of range 2021-01-03 16:23:57 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/ha_strava/sensor.py", line 403, in strava_data_update_event_handler self._data = event.data["activities"][self._activity_index] IndexError: list index out of range 2021-01-03 16:23:57 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/ha_strava/sensor.py", line 403, in strava_data_update_event_handler self._data = event.data["activities"][self._activity_index] IndexError: list index out of range 2021-01-03 16:23:57 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/ha_strava/sensor.py", line 403, in strava_data_update_event_handler self._data = event.data["activities"][self._activity_index] IndexError: list index out of range 2021-01-03 16:23:57 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/ha_strava/sensor.py", line 403, in strava_data_update_event_handler self._data = event.data["activities"][self._activity_index] IndexError: list index out of range 2021-01-03 16:23:57 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/ha_strava/sensor.py", line 403, in strava_data_update_event_handler self._data = event.data["activities"][self._activity_index] IndexError: list index out of range 2021-01-03 16:23:57 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/ha_strava/sensor.py", line 403, in strava_data_update_event_handler self._data = event.data["activities"][self._activity_index] IndexError: list index out of range

pcl101 avatar Jan 03 '21 15:01 pcl101

Hi @pcl101,

let's see what's going on here. The first thing I would check is how many activities you have on your Strava account. Is that number is smaller than the number of concurrent activities which you've configured for the integration?

best,

Simon

codingcyclist avatar Jan 03 '21 17:01 codingcyclist

You have a keen eye. I salute you Sir!

I've only got one activity in my Strava account ( just starten a trail run today ) and the number of concurrent activities in my configuration is set to 3.

Suggestion : I'll leave the number of activities in my configuration at 3 and see what happens over the next few days as the number of activities in Strava rises.

pcl101 avatar Jan 03 '21 18:01 pcl101

Update : Got three activities in Strava. Still no luck. Same errors.

Could it be that this integration only works on the paid version of Strava?

pcl101 avatar Jan 04 '21 13:01 pcl101

Hi @pcl101, I'm sorry that you keep having issues with the integration. Are all your three activities either Running, Cycling, or Hiking activities? Unfortunately, those are the only three types of activities which are currently supported by the integration.

codingcyclist avatar Jan 06 '21 17:01 codingcyclist

Hi, Everything is solved. Don’t know exactly what happen, but after some rebooting everything went fine. Thanks for answering by the way

Gioele Zingarino Inviato dal mio iPhone

Il giorno 6 gen 2021, alle ore 18:20, Simon Bumm [email protected] ha scritto:

 Hi @pcl101, I'm sorry that you keep having issues with the integration. Are all your three activities either Running, Cycling, or Hiking activities? Unfortunately, those are the only three types of activities which are currently supported by the integration.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

joelez83 avatar Jan 06 '21 17:01 joelez83