MilestoneSystemsInc / PowerShellSamples

A collection of samples for managing your Milestone XProtect VMS using MilestonePSTools in PowerShell
https://www.milestonepstools.com
MIT License
37 stars 12 forks source link

Get-VmsRule Timeout #134

Closed Jaffe1986 closed 5 months ago

Jaffe1986 commented 5 months ago

I find it weird I haven't needed to run this command until now, but I always get a timeout error when I run Get-VmsRule.

Get-VmsRule : The request channel timed out while waiting for a reply after 00:04:59.9979784. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout. At line:1 char:1

I've tried to get a list of all the rules. ''' Get-VmsRule ''' Searching for a single rule.

''' Get-VmsRule -Name 'front -5 Minute Live Stream' '''

I've tried the suggestions listed in the error message.

any help would be appreciated.

Tarterman commented 5 months ago

@Jaffe1986, what version of XProtect are you using and what version of MilestonePSTools are you using?

Also, can you run Get-VmsRule again to get the error and then run the following and post the output of both commands here:

$error[0] | format-list * -force

$error[0].Exception | format-list * -force
Jaffe1986 commented 5 months ago

Thank you so much for the quick response. This is we your team is the best.

I am sorry, I discovered I had 2 different versions of MilestonePSTools installed side by side, I don't know what the conflict was but when I uninstalled the older version, everything started to work.

Tarterman commented 5 months ago

That's interesting that have another version was causing this issue, although I have seen strange things once or twice before when more than one version was installed. Usually it isn't an issue though. Glad to hear it was a simple solution.