jay (support) wrote:mundmc wrote:I am very suspicious this is the prime error, related to my script that updates an Indigo Variable for Dynamic Refreshing Image Paths.
- Code: Select all
2019-05-21 03:45:32.843 WebServer http://localhost:8176/variable_url_redirect/redirect?name=DRIP_CURRENTURL_den load error: [Errno 54] Connection reset by peer
2019-05-21 03:45:33.899 WebServer disconnecting from Indigo server
2019-05-21 03:45:33.899 Application WebServer client disconnected
While that may be a symptom, the variable_url_redirect IWS plugin doesn't open any files, so it wouldn't be the root cause of the issue. What exactly is the script that you're using? If it opens files then you'll definitely want to make sure that it always closes regardless of any issues that it happens to encounter.
My scripts for this use NO files, when I was cooking up the implementation, it seemed the ability to access a dict from an Indigo Variable was way more efficient than using a file.
The script updates the url for dynamic url plugin, which in turn points to a camera that provides a refreshing image (about every second)
Q1: Is it possible that difficulty opening an image (in this case from an wires ip camera) could cause this kind of error?
Q2: Is there a way to detect the WebServer is shutting down (short of scanning the log)? Thanks Jay