In the HS2 log, I see several errors like this one as well as timeout messages. I have a script that takes a snapshot periodically. When I refresh the cameras in the webpage I could not reproduce the error.
Would it be possible to add the camera name in the exception message to make it easier to narrow down?
Would it be possible to add the camera name in the exception message to make it easier to narrow down?
Code:
An unexpected error occured in the TakeSnapshot() function/subroutine: [System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. --- System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) --- End of inner exception stack trace --- at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.IO.BinaryReader.ReadBytes(Int32 count) at HSPI_ULTRANETCAM.NetCamDevice.TakeSnapshot(String strSnapshotFilename, String strThumbnailFilename, Int32 iTimeoutSec)]
Code:
An unexpected error occured in the TakeSnapshot() function/subroutine: [System.Net.WebException: The operation has timed out at System.Net.HttpWebRequest.GetResponse() at HSPI_ULTRANETCAM.NetCamDevice.TakeSnapshot(String strSnapshotFilename, String strThumbnailFilename, Int32 iTimeoutSec)]
Comment