alanrenouf / vCheck-vSphere

vCheck Daily Report for vSphere
MIT License
735 stars 325 forks source link

vCheck sending email had operation timeout #689

Open aungkyawthu opened 5 years ago

aungkyawthu commented 5 years ago

Hello,

I'm getting following messages when I run vCheck at my environment.

[13:00:17] ..start calculating Disconnecting from vCenter by Alan Renouf v1.1 [106 of 106] [13:00:17] ..finished calculating Disconnecting from vCenter by Alan Renouf v1.1 [106 of 106] [13:00:19] ..Displaying HTML results [13:00:19] ..Sending Email Exception calling "Send" with "1" argument(s): "The operation has timed out." At C:\vCheck-vSphere-master\vCheck-vSphere-master\vCheck.ps1:1052 char:3

PS C:\vCheck-vSphere-master\vCheck-vSphere-master> $PSVersionTable

Name Value


PSVersion 5.1.14409.1005 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.14409.1005 CLRVersion 4.0.30319.34014 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

lucdekens commented 5 years ago

We should at least provide better reporting when the timeout occurs. Perhaps a try-catch?