Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get HTTP Status 406 - Not Acceptable for script nsx-edge-graphite.pl on NSX 6.4.5 #6

Open
dedi27 opened this issue Mar 4, 2020 · 0 comments

Comments

@dedi27
Copy link

dedi27 commented Mar 4, 2020

Hi,
I had issue running the script nsx-edge-graphite.pl on version 6.4.5 of NSX. It was returning the error parserError Get HTTP Status 406 - Not Acceptable
I resolved by changing the script line as below:

From:
my $headers = {
"Accept" => "application/*+xml;version=1.5",
"Authorization" => 'Basic ' . encode_base64($nsxUsername . ':' . $nsxPassword),
};

To:

my $headers = {
"Accept" => "application/xml;version=1.5",
"Authorization" => 'Basic ' . encode_base64($nsxUsername . ':' . $nsxPassword),
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant