home-assistant-garmin_connect: Error while setting up integration

While setting up integration i get following error

Failed setup, will retry: Error in request: 404 Client Error: Not Found for url: https://connectapi.garmin.com/gear-service/gear/stats/f6d6973f87264891bd43aa382cdafd27

Using version 0.2.29 on latest home assistant version.

Long version of logs:

This error originated from a custom integration.

Logger: custom_components.garmin_connect Source: helpers/update_coordinator.py:379 integration: Garmin Connect (documentation, issues) First occurred: 19:21:21 (6 occurrences) Last logged: 19:24:31

Unexpected error fetching garmin_connect data Traceback (most recent call last): File “/usr/local/lib/python3.13/site-packages/garth/http.py”, line 143, in request self.last_resp.raise_for_status() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File “/usr/local/lib/python3.13/site-packages/requests/models.py”, line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://connectapi.garmin.com/gear-service/gear/stats/f6d6973f87264891bd43aa382cdafd27

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py”, line 379, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/config/custom_components/garmin_connect/init.py”, line 203, in _async_update_data gear_stats = await asyncio.gather(*tasks) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.13/concurrent/futures/thread.py”, line 59, in run result = self.fn(*self.args, **self.kwargs) File “/usr/local/lib/python3.13/site-packages/garminconnect/init.py”, line 1216, in get_gear_stats return self.connectapi(url) ~~~~~~~~~~~~~~~^^^^^ File “/usr/local/lib/python3.13/site-packages/garminconnect/init.py”, line 220, in connectapi return self.garth.connectapi(path, **kwargs) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.13/site-packages/garth/http.py”, line 177, in connectapi resp = self.request(method, “connectapi”, path, api=True, **kwargs) File “/usr/local/lib/python3.13/site-packages/garth/http.py”, line 145, in request raise GarthHTTPError( …<2 lines>… ) garth.exc.GarthHTTPError: Error in request: 404 Client Error: Not Found for url: https://connectapi.garmin.com/gear-service/gear/stats/f6d6973f87264891bd43aa382cdafd27

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 21 (9 by maintainers)

Most upvoted comments

Upstream code has now (today been adapted better fit way HA handles MFA (first step) so I will work on implementing.

I deleted the integration and re-added it. Don’t know if that was a mistake, as I now get “Unexpected error” when inputting my login credentials and can’t get past that prompt. Updated to 0.2.30.