Forum Discussion

phani's avatar
phani
Advisor
10 years ago

http.client FreeMarker Context Object is returning the error "html found in response"

Hi,

 

We are trying to get HTML/XML data from thirdparty API by using http.client FreeMarker Context Object.

E.X.:  <#assign response = http.client.request(API).header("Authorization", token).body("{ 'mode':'test'}", "application/xml").get()/>

 

The http.client.response FreeMarker Context Object (${response.error.message})  is returning the errror  "html found in response".

 

We even tried changing the Content-Type to "text/html" but same error we are reciving.

 

Your help could be highly appreciated.

Thanks & Regards,

Phani

  • Hi Phani

     

    I've updated a config on that community.  Please try again and let me know if it now works.

     

    Thanks

    Noaman

  • NoamanA's avatar
    NoamanA
    Lithium Alumni (Retired)

    Hey Phani

     

    Which community instance are you trying this on?

     

    There could be a backend configuration affecting this.

     

    Regards

    Noaman

      • NoamanA's avatar
        NoamanA
        Lithium Alumni (Retired)

        Hi Phani

         

        I've updated a config on that community.  Please try again and let me know if it now works.

         

        Thanks

        Noaman