Response content-type is text/html

Hello,

We want to use an action that calls a web service (at our side) and returns a response in html format. Until now we have not found a solution how to handle the html response and we are getting always the error :

REST call for action execute failed. Message:We were unable to process the response from the remote endpoint because it had a 'content-type' header of 'text/html;charset=UTF-8' instead of the required value of 'application/json'.

Is there any way to handle responses which are not in json format?

Thank you!

Hi igkouv,

We currently do not support any response types other than application/json. There is an idea for this support that you can vote on and include your requirements: https://genesyscloud.ideas.aha.io/ideas/CLSELF-I-174

In the short term the only option that I know if is to either get the web service to add an endpoint that returns results in application/json format, or to wrap that endpoint with your own web service that will translate the results. For example, an AWS lambda could be used to do this translation, and then called from a Lambda Data Action.

--Jason

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.