You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am seeing sometimes that the node provided by this project is stuck in "disconnected" state. I was not able to catch a moment to debug this quite yet, however.
But from a brief code review, I think I can see a few reasons why this may be happening:
mowerConnection.getMowers() throws an exception → the connect method will terminate prematurely and not schedule a repeat attempt to connect;
mowerConnection.activateRealtimeUpdates() throws an exception → similar outcome;
Within automower-connect library itself, if checkClose fires, it will move on to re-establish the connection, but if this attempt throws an exception the loop to maintain a live websocket connection gets broken.
I believe solving 1 and 2 will largely solve 3 implicitly, but it may make sense to address all of these independently.
The text was updated successfully, but these errors were encountered:
nagisa
changed the title
The node will not automatically reconnect if connection fails/disconnection occurs
The node will not automatically reconnect correctly if connection fails/disconnection occurs
Sep 3, 2024
nagisa
changed the title
The node will not automatically reconnect correctly if connection fails/disconnection occurs
The node will sometimes not automatically reconnect correctly if connection fails/disconnection occurs
Sep 3, 2024
I am seeing sometimes that the node provided by this project is stuck in "disconnected" state. I was not able to catch a moment to debug this quite yet, however.
But from a brief code review, I think I can see a few reasons why this may be happening:
mowerConnection.getMowers()
throws an exception → theconnect
method will terminate prematurely and not schedule a repeat attempt to connect;mowerConnection.activateRealtimeUpdates()
throws an exception → similar outcome;automower-connect
library itself, ifcheckClose
fires, it will move on to re-establish the connection, but if this attempt throws an exception the loop to maintain a live websocket connection gets broken.I believe solving 1 and 2 will largely solve 3 implicitly, but it may make sense to address all of these independently.
The text was updated successfully, but these errors were encountered: