Skip to content

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

@dedi27

Description

@dedi27

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),
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions