vmware-archive / powernsx

PowerShell module that abstracts the VMware NSX-v API to a set of easily used PowerShell functions
173 stars 89 forks source link

WARNING: Response header [Accept-Charset, System.String[]].key has more than one value. Only the first value is retained #564

Open alagoutte opened 5 years ago

alagoutte commented 5 years ago

When use PowerNSX module (last release) with Powershell 6.1

PS C:\> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.1.0
PSEdition                      Core
GitCommitId                    6.1.0
OS                             Microsoft Windows 10.0.16299
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

I get the following warning when add for example a new-nsxipset entry

PS C:\> New-NsxIpSet -name test -IPAddress 192.168.23.0/24
WARNING: Response header [Accept-Charset, System.String[]].key has more than one value.  Only the first value is retained.  Please raise an issue on the PowerNSX Github site with steps to reproduce if you see this warning!

objectId           : ipset-287
objectTypeName     : IPSet
vsmUuid            : 4200ADF7-6B5E-63C2-6A34-BB88C19BE4D0
nodeId             : b9ad442a-d5a1-4187-87cf-0eff87f70643
revision           : 1
type               : type
name               : test
description        :
scope              : scope
clientHandle       :
extendedAttributes :
isUniversal        : false
universalRevision  : 0
isTemporal         : false
inheritanceAllowed : false
value              : 192.168.23.0

Any idea how to fix ?

hq9000 commented 4 years ago

getting the same when Connect-NsxLogicalSwitch

image

alagoutte commented 4 years ago

Yes but it work !