qistoph / MMM-nstreinen

MagicMirror² module to show Dutch train information
12 stars 4 forks source link

Module stuck after a while #12

Closed SemicolonStruggles closed 5 years ago

SemicolonStruggles commented 5 years ago

This has basically been an issue for the past year or so. Not sure why I didnt report it earlier.

After a certain amount of days the module will just get stuck and will no longer update the trips. There doesn't seem to be a pattern as to when it gets stuck. Sometimes it's a few days, sometimes more like weeks.

There also is no connection between the times at which it gets stuck. 6:12AM or 7:11PM, it appears to be completely random.

There is a simple workaround and that is just rebooting the magic mirror. While this fixes the issue temporarily this obviously is not the intended behaviour.

maximoei commented 5 years ago

Seems that if the modules loses internet connection (or API times out, etc.) once, it does not recover after that, but stays stuck until restarting MMM.

There should be some logic to recover and retry I guess

qistoph commented 5 years ago

Thanks @maximoei for this addition. Did you find a consistent method to reproduce the error?

qistoph commented 5 years ago

Feel free to reopen the issue if the same error occurs.

SemicolonStruggles commented 5 years ago

Thank you! Will let you know if the problem persists.