Forum Discussion
luk
6 years agoBoss
EDIT: I stand corrected, I don't think you passed an HTML link =)...I think Lithium messed up with the v2 editor...it parses links in PRE/CODE blocks and they are then displayed as HTML... ping SuzieH could you forward that issue to the appropriate team? There is another issue as well, editing a post removes ALL closing tags in FreeMarker code...basically have to redo code blocks each time you edit a post...
Flexerian That is never going to work like that you are passing an entire HTML link-tag as a URL parameter to the http.client.
If you add a <#attempt><#recover></#attempt> block around your code you might get better error messages, not guaranteed though... for now, try this:
<#attempt>
<#assign response = http.client.request('...https...domain.com/?action=list_items').get() />
<#if (response.content)?has_content>
Response had content!
</#if>
<#if response.hasError>
${response.error.message}
</#if>
<#recover>
Recovered from error: ${.error}
</#attempt>
Related Content
- 11 years ago
- 2 years ago
- 10 years ago