Getting Error - PowerShell Query

Hi,

I am getting below error when trying to pull data from query using powershell. Please help

Get-SwisData : An error occurred when verifying security for the message.

Query I am using:

$SwisHost = "xxxxxxx"
$user = "xxxx"
$creds= Get-Credential -UserName $user -Message "Enter password"
$Swis = Connect-Swis -Hostname $SwisHost -Credential $creds

$nodes = Get-SwisData $swis -Query "Select NodeID, Caption FROM Orion.Nodes"
$nodes

Regards

Sandeep