NagasubramaniamB Member since 2018 5 posts
Cognizant Technology solutions
Posted: 1 year ago
Last activity: 1 year 7 months ago

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


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
Share this page LinkedIn