lorna
11 years agoMaven
client request error
I'm making abasic get call and I keep getting an error.
The endpoint is:
<#assign response = http.client.request("http://tt-internal--tst.tomtom.com/cc/kfController/SearchResult?cid=35952894&s=map").get() />
<#if response.hasError>
Error: ${response.error.message}
<#else>
Content: ${response.content}
</#if>
The error is error making http request: String index out of range: 0
I can see results looking at http://tt-internal--tst.tomtom.com/cc/kfController/SearchResult?cid=35952894&s=map in a browser though.
Where am I going wrong?!