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

[generacmobilelink] Failure to initialize on 4.3.0 #17961

Open
DrTron opened this issue Dec 23, 2024 · 6 comments
Open

[generacmobilelink] Failure to initialize on 4.3.0 #17961

DrTron opened this issue Dec 23, 2024 · 6 comments
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@DrTron
Copy link

DrTron commented Dec 23, 2024

It seems the upgrade from 4.2.3-1 to 4.3.0-1 affected the Generac Mobile Link binding, it now fails to initialize.
username/password are correct and I can log into the Generac account using these credentials.

The bridge thing shows: COMMUNICATION_ERROR, Session Expired

A stop and re-start of the bridge shows this in the logs:

08:51:41.377 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'generacmobilelink:account:ced1bbc17f' changed from UNINITIALIZED (DISABLED) to INITIALIZING
08:51:41.379 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'generacmobilelink:account:ced1bbc17f' changed from INITIALIZING to UNKNOWN
08:51:41.381 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'generacmobilelink:generator:ced1bbc17f:918466' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
08:51:41.383 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'generacmobilelink:generator:ced1bbc17f:918466' changed from INITIALIZING to UNKNOWN
08:51:45.898 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'generacmobilelink:account:ced1bbc17f' changed from UNKNOWN to ONLINE
08:51:46.039 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'generacmobilelink:account:ced1bbc17f' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Session Expired
08:51:46.040 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'generacmobilelink:generator:ced1bbc17f:918466' changed from UNKNOWN to OFFLINE (BRIDGE_OFFLINE)

I'm not sure if something has changed on the Generac side or if the binding has issues with the Openhab upgrade.

@DrTron DrTron added the bug An unexpected problem or unintended behavior of an add-on label Dec 23, 2024
@digitaldan
Copy link
Contributor

So mine was offline as well, but i just paused and unpaused the account thing and its back online, can you try that as well? Also nice to know there are others using this binding ;-)

@DrTron
Copy link
Author

DrTron commented Dec 23, 2024

That's exactly what I did, pause and unpause the account thing. Didn't help, sadly, still offline.

@digitaldan
Copy link
Contributor

Hmm, i'll take a look at it.

@lsiepel
Copy link
Contributor

lsiepel commented Dec 23, 2024

If you set the binding’s log level to debug it should show some useful data for troubleshooting.

@DrTron
Copy link
Author

DrTron commented Dec 23, 2024

Absolutely, here it is:

Looks definitively like an authentication issue (since it returns error 403), but the login/password are unchanged and I used them to login to the website directly.

2024-12-23 17:39:48.392 [DEBUG] [dler.GeneracMobileLinkAccountHandler] - Attempting login
2024-12-23 17:39:49.796 [DEBUG] [dler.GeneracMobileLinkAccountHandler] - login response status 200
2024-12-23 17:39:51.151 [DEBUG] [dler.GeneracMobileLinkAccountHandler] - getEndpoint [{"apparatusId":918466,"serialNumber":"xxxxxxxx","name":"xxxxx","type":0,"localizedAddress":"xxxx
2024-12-23 17:39:51.345 [DEBUG] [dler.GeneracMobileLinkAccountHandler] - Session expired
org.openhab.binding.generacmobilelink.internal.handler.GeneracMobileLinkAccountHandler$SessionExpiredException: API returned status code: 403
        at org.openhab.binding.generacmobilelink.internal.handler.GeneracMobileLinkAccountHandler.getEndpoint(GeneracMobileLinkAccountHandler.java:234) ~[?:?]
        at org.openhab.binding.generacmobilelink.internal.handler.GeneracMobileLinkAccountHandler.updateGeneratorThing(GeneracMobileLinkAccountHandler.java:218) ~[?:?]
        at org.openhab.binding.generacmobilelink.internal.handler.GeneracMobileLinkAccountHandler.updateGeneratorThings(GeneracMobileLinkAccountHandler.java:210) ~[?:?]
        at org.openhab.binding.generacmobilelink.internal.handler.GeneracMobileLinkAccountHandler.poll(GeneracMobileLinkAccountHandler.java:164) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
        at java.lang.Thread.run(Thread.java:833) [?:?]
2024-12-23 17:40:26.671 [DEBUG] [dler.GeneracMobileLinkAccountHandler] - childHandlerInitialized generacmobilelink:generator:ced1bbc17f:918466
2024-12-23 17:40:26.672 [DEBUG] [dler.GeneracMobileLinkAccountHandler] - No device for id 918466
2024-12-23 17:40:27.668 [DEBUG] [dler.GeneracMobileLinkAccountHandler] - Attempting login
2024-12-23 17:40:28.555 [DEBUG] [dler.GeneracMobileLinkAccountHandler] - Could not load login page
2024-12-23 17:40:28.555 [DEBUG] [dler.GeneracMobileLinkAccountHandler] - parseSettings: {"remoteResource":"https://gpsprodpltazureb2c.blob.core.windows.net/mobile-link/SignIn.html","retryLimi
2024-12-23 17:40:29.183 [DEBUG] [dler.GeneracMobileLinkAccountHandler] - selfAssertedRequest response 200
2024-12-23 17:40:30.653 [DEBUG] [dler.GeneracMobileLinkAccountHandler] - login response status 200
2024-12-23 17:40:31.871 [DEBUG] [dler.GeneracMobileLinkAccountHandler] - getEndpoint [{"apparatusId":918466,"serialNumber":"xxxxxx","name":"xxxxx","type":0,"localizedAddress":"xxxxx
2024-12-23 17:40:32.188 [DEBUG] [dler.GeneracMobileLinkAccountHandler] - Session expired
org.openhab.binding.generacmobilelink.internal.handler.GeneracMobileLinkAccountHandler$SessionExpiredException: API returned status code: 403
        at org.openhab.binding.generacmobilelink.internal.handler.GeneracMobileLinkAccountHandler.getEndpoint(GeneracMobileLinkAccountHandler.java:234) ~[?:?]
        at org.openhab.binding.generacmobilelink.internal.handler.GeneracMobileLinkAccountHandler.updateGeneratorThing(GeneracMobileLinkAccountHandler.java:218) ~[?:?]
        at org.openhab.binding.generacmobilelink.internal.handler.GeneracMobileLinkAccountHandler.updateGeneratorThings(GeneracMobileLinkAccountHandler.java:210) ~[?:?]
        at org.openhab.binding.generacmobilelink.internal.handler.GeneracMobileLinkAccountHandler.poll(GeneracMobileLinkAccountHandler.java:164) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
        at java.lang.Thread.run(Thread.java:833) [?:?]

@lsiepel lsiepel changed the title Generac MobileLink binding fails to initialize on 4.3.0 [generacmobilelink] Failure to initialize on 4.3.0 Dec 24, 2024
@DrTron
Copy link
Author

DrTron commented Dec 25, 2024

Interestingly enough, I can get the Generac bridge back online if I disable (or delete) the Generator thing itself. But enabling (or adding from the inbox) of the Generator thing results in both going offline again, with the same error (Session Expired)...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

No branches or pull requests

3 participants