Forum Discussion

bowenli's avatar
11 years ago

Need help with Http.client.request !

My Endpoint code is 

<-- endpoint start -->

 

<#assign response = http.client.request("http://feeds.news.com.au/public/rss/2.0/fs_breaking_news_13.xml").get()/>

<#if response.hasError>
${response.error.message}
</#if>

 

<--endpoint end-->

 

it returns "html found in response" , what does this mean? the syntax is correct , why does it throw error?

 

 

 

  •  Hi Bowen,

     

    I believe that it is for Fox Sports Australia project, I have updated some config from the backend. can you give a try again? it could be working now.

     

    Best Rgards

    /H

  • HaidongG's avatar
    HaidongG
    Lithium Alumni (Retired)

     Hi Bowen,

     

    I believe that it is for Fox Sports Australia project, I have updated some config from the backend. can you give a try again? it could be working now.

     

    Best Rgards

    /H

    • bowenli's avatar
      bowenli
      Ace
      working now ! we have scratched our heads for quite a while.
      • Gursimrat's avatar
        Gursimrat
        Leader
        Could you please provide more info regarding how it worked, a code snippet would be great.

        Thanks
  • I'm guessing your code snippet is missing the bit where you output the content of the response (or part of it).