Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while setting up integration #240

Open
snok3r-krk opened this issue Jan 21, 2025 · 2 comments
Open

Error while setting up integration #240

snok3r-krk opened this issue Jan 21, 2025 · 2 comments

Comments

@snok3r-krk
Copy link

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

@cjt-uk
Copy link

cjt-uk commented Jan 22, 2025

I've just managed to work my way through the workaround with script etc for the 2FA issue, and now hit the issue described above also. So not sure if I've solved the 2FA but now fallen straight into another issue or whether the 2FA fix hasn't worked.

@snok3r-krk
Copy link
Author

I do not use 2fa in GC if that matters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants