All Apps and Add-ons

[8.0.6] REST API call fails with error after upgrade.

sylim_splunk
Splunk Employee
Splunk Employee

After upgrade to 8.0.6 the search with "| REST " is failing when it's sent to the older versions but it is successful for the same version instances.

In GUI, " | REST splunk_server=olderversion /services/server/info " fails with the error below;

WARN: [olderversion] Unexpected status for to fetch REST endpoint uri=https://127.0.0.1:8089/services/server/info?count=0&strict=false from server=https://127.0.0.1:8089 - Bad Request

 

Labels (2)
1 Solution

sylim_splunk
Splunk Employee
Splunk Employee


It's a compatibility issue for  the command REST with an argument "strict" - this will break the search between the version 8.0.5/8.0.6 and older versions.

* The scope of impact, any search with "|REST " from 8.0.6 (or 8.0.5 ) to the older versions will fail - the version 8.0.6 always add "strict" argument which is not understood by the old versions and rejected.

----<Excerpts>---
curl -k https://splunk_ver732:8089/services/server/info?count=0\&strict=false -u admin
Enter host password for user 'admin':
<?xml version="1.0" encoding="UTF-8"?>
<response>
<messages>
<msg type="ERROR">Argument "strict" is not supported by this handler.</msg>
</messages>
</response>
------------------
The command above will be successful without "strict=false" for the older versions.

https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rest
The fix is targetted to be included in 8.0.7 for late Oct or early Nov 2020 which is subject to change.

 

 


1925814

View solution in original post

sylim_splunk
Splunk Employee
Splunk Employee


It's a compatibility issue for  the command REST with an argument "strict" - this will break the search between the version 8.0.5/8.0.6 and older versions.

* The scope of impact, any search with "|REST " from 8.0.6 (or 8.0.5 ) to the older versions will fail - the version 8.0.6 always add "strict" argument which is not understood by the old versions and rejected.

----<Excerpts>---
curl -k https://splunk_ver732:8089/services/server/info?count=0\&strict=false -u admin
Enter host password for user 'admin':
<?xml version="1.0" encoding="UTF-8"?>
<response>
<messages>
<msg type="ERROR">Argument "strict" is not supported by this handler.</msg>
</messages>
</response>
------------------
The command above will be successful without "strict=false" for the older versions.

https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rest
The fix is targetted to be included in 8.0.7 for late Oct or early Nov 2020 which is subject to change.

 

 


1925814

Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...