7 Replies Latest reply on Jan 18, 2018 8:01 AM by pkharekofax

    Getting error with Connect-NsxtServer : Invalid JSON primitive

    pkharekofax Novice

      Hi all,

       

      Has anyone encountered this error, and knows a fix?

       

      This is on PowerCLI 6.5.4.7.

       

      Thanks!

      Khare

       

      PS C:\> Connect-NsxtServer xxxxxx -User xxx -Password xxx

      Connect-NsxtServer : 1/12/2018 11:22:41 AM      Connect-NsxtServer              Invalid JSON primitive: .

      At line:1 char:1

      + Connect-NsxtServer xxxxxx -User xxx -Password xxx...

      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

          + CategoryInfo          : NotSpecified: (:) [Connect-NsxtServer], VimException

          + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.Cis.Nsxt.Commands.Cmdlets.ConnectNsxtServer

       

      PS C:> get-module vmware.powercli -ListAvailable

       

      ModuleType Version    Name                                ExportedCommands

      ---------- -------    ----                                ----------------

      Manifest   6.5.4.7... VMware.PowerCLI

       

      PS C:\> get-module *nsxt

      ModuleType Version    Name                                ExportedCommands

      ---------- -------    ----                                ----------------

      Binary     2.0.0.6... VMware.VimAutomation.Nsxt           {Connect-NsxtServer, Disconnect-NsxtServer, Get-NsxtService}