Open mrhockeymonkey opened 5 years ago
We could build something into the client page (JavaScript) to try and refresh the entire page or something if they receive enough errors like this.
If you are willing to that could work. I'm not a JavaScript guy so i don't think ill be able to contribute anything there. This should probably be optional also.
Failing that is there a way to insert some sort of custom javascript into the page. I know you can add elements with New-UDHtml, perhaps something like that to allow me to put in a "kill me after 48 hours" script
I have a dashboard running with a few charts set to auto refresh every minute and log level set to "warning". I'm using UniversalDashboard.Community version 2.5.2 on powershell core from inside a docker container. What I am seeing in the warning messages is that there are many calls to endpoints that no long exist (as of a week ago).
I believe this is because some browsers still have the dashboard loaded from before we updated it and so the browser is still trying to auto refresh these old charts. Is there a way I can make browsers timeout after some period to stop them forever requesting charts that don't exist?
I see that an IdleTimeout of 25 hours is set for New-UDDashboard but these old charts are from a week ago so I think this is not the setting I need to tweak? Perhaps New-UDChart needs a -RefreshInterval and -RefreshTimeout params?
Any guidance welcome. Happy to upgrade or send logs as required.