home-assistant-garmin_connect icon indicating copy to clipboard operation
home-assistant-garmin_connect copied to clipboard

Forbidden URL

Open nzrunner opened this issue 2 years ago • 7 comments

I have managed to get the Garmin Connect integration to connect and login. But as soon as the integration connects, I get the following two lines appear in my HA Logs: -

2022-01-04 17:15:05 ERROR (MainThread) [custom_components.garmin_connect] Connection error occurred during Garmin Connect login request: Forbidden url 2022-01-04 17:15:05 WARNING (MainThread) [homeassistant.config_entries] Config entry '[email protected]' for garmin_connect integration not ready yet: Forbidden url; Retrying in background

It is possible that my PiHole has blocked something, but the HA logs don't tell me what URL is forbidden.

Any thoughts on what URL is forbidden?

nzrunner avatar Jan 04 '22 06:01 nzrunner

@nzrunner Something I want to know as well, it seems HA is maybe requesting an URL before login process is finished, this happens only at restart and resolves itself, I have added more debugging locally to see what exactly is happening.

cyberjunky avatar Jan 04 '22 09:01 cyberjunky

same here: Screenshot 2022-01-04 at 12 23 13

homonto avatar Jan 04 '22 12:01 homonto

The forbidden url is 'post url: https://sso.garmin.com/sso/signin' Looking into it but as mentioned it simply retries and fetches your data.

cyberjunky avatar Jan 05 '22 09:01 cyberjunky

Maybe this could be flagged as a warning and the if fails after the retry then an error?

heinekmadsen avatar Jan 13 '22 09:01 heinekmadsen

Yes looking into that, but we must retry only a fix amount, had some loops already while testing.

cyberjunky avatar Jan 13 '22 12:01 cyberjunky

Are there any news on this? I tried to setup yesterday and after 5 retries, I end up with this:

image

image

And all entities remain empty.

jankete avatar May 17 '22 11:05 jankete

This integration continually goes in and out of this state. Is there a fix for this or is this just how it currently operates?

kksligh avatar Jun 18 '22 18:06 kksligh