Question

2
Replies
205
Views
Close popover
Nagasubramaniam Balachandran (NagasubramaniamB)
Cognizant Technology solutions

Cognizant Technology solutions
US
NagasubramaniamB Member since 2018 5 posts
Cognizant Technology solutions
Posted: February 14, 2019
Last activity: March 21, 2019
Closed

Rest Client throwing error "The format of accept header is invalid"

Hi,

We upgraded to the 8.0.1110 of robotics studio and leveraged the REST API client component from the Toolbox. We have a need in our process to invoke a REST API call and are using the REST API Client component to accomplish it. We have all the details entered properly in the REST Client Properties and in the accept header section we need to override the value to "application/json;version=2" as the REST services team is returning a response in version 2 JSON format. Whenever we run the automation by using this accept header version, we are getting the error "The format of accept header application/json;version=2" is invalid. Tried multiple workaround, but never able to go past this error.

Are there any other solutions available to get past this error? Invoking a different service with accept header as 'application/json' works fine, but whenever we try to use version=2 extension, it's failing.

Can you please help with this error?

***Edited by Moderator Marissa to update platform capability tags****

Data Integration Robotic Process Automation
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.