jaroschek / home-assistant-myuplink

Custom Home Assistant integration for devices and sensors in myUplink account.
43 stars 10 forks source link

Token request for myuplink_****** failed (invalid_grant): check authorization server configuration #123

Open landsverk opened 3 months ago

landsverk commented 3 months ago

For me, Myuplink integration has gone from unstable to not working at all. Earlier I just had to reload the integration about every one to two weeks, now it`s unable to get a new token to authorize.

I also get this error in the log files:

`Logger: homeassistant.helpers.config_entry_oauth2_flow Source: helpers/config_entry_oauth2_flow.py:220 First occurred: 11:54:07 (99 occurrences) Last logged: 13:54:34

Token request for myuplink_** failed (invalid_grant): check authorization server configuration`

As well as a warning: StrEnum was used from myuplink, this is a deprecated alias which will be removed in HA Core 2025.5. Use enum.StrEnum instead, please report it to the author of the 'myuplink' custom integration

ceesgeert commented 2 months ago

I have exactly the same problem. MYUplink was working fine for months in a row until last week when suddenly it failes to authenticate.

Logger: homeassistant.helpers.config_entry_oauth2_flow Source: helpers/config_entry_oauth2_flow.py:220 First occurred: 11:45:33 (4 occurrences) Last logged: 11:46:18

Token request for myuplink_xxx failed (invalid_grant): check authorization server configuration

I tried various even reinstall but the problem remains. I reverted back to the backup but the problem remains. It seems that the callback url which is described in the documentation (https://my.home-assistant.io/redirect/oauth) is not working.

ceesgeert commented 1 month ago

Finally after various attempts removing and reinstalling MyUplink it works again. Still no clue what the cause of the sudden break was.

Fredo70 commented 1 month ago

Same error for me.