An error occurred while processing the template.
Java method "com.liferay.portal.kernel.util.Http.URLtoString(com.liferay.portal.kernel.util.Http$Options)" threw an exception when invoked on com.liferay.portal.template.engine.TemplateContextHelper$HttpWrapper object "com.liferay.portal.template.engine.TemplateContextHelper$HttpWrapper@54cf793d"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign wasteItem = jsonFactoryUtil.l...  [in template "12768602#20123#null" at line 6, column 1]
----
1<#assign wasteItemId = ObjectEntry_objectEntryId.getData() /> 
2 
3<#assign http_options = staticUtil["com.liferay.portal.kernel.util.InstanceFactory"].newInstance("com.liferay.portal.kernel.util.Http$Options") /> 
4<#assign VOID = http_options.addHeader("Authorization", "Basic RGF2aWQuS2VubmVkeUBsaXNidXJuY2FzdGxlcmVhZ2guZ292LnVrOk1jdS1EZXNpZ24yIQo=") /> 
5<#assign VOID = http_options.setLocation(themeDisplay.getPortalURL()+"/o/c/lcccwasteitems/"+wasteItemId+"?nestedFields=wasteItems,acceptedItems&fields=image.link.href,wasteItems.type,wasteItems.colour,wasteItems.image.link.href,acceptedItems.name,acceptedItems.image.link.href,acceptedItems.link") /> 
6<#assign wasteItem = jsonFactoryUtil.looseDeserialize(httpUtil.URLtoString(http_options)) /> 
7 
8<#if (ObjectField_image.getData())??> 
9	<img src="${wasteItem.image.link.href}" alt="" style="width: 100%; max-width: 24rem;"> 
10</#if> 
11 
12<h4 class="mt-5 mb-3">Waste type:</h4> 
13<ul class="list-unstyled"> 
14<#list wasteItem.wasteItems as wasteType> 
15  <li class="d-flex align-items-center mb-2"><img src="${wasteType.image.link.href}" class="w-2 h-2 rounded-circle" style="background-color: #${wasteType.colour}"><span class="ml-2 d-block">${wasteType.type}</span> 
16</li> 
17</#list> 
18</ul> 
19 
20<h4 class="mt-5 mb-3">Where does it go:</h4> 
21<ul class="list-unstyled"> 
22<#list wasteItem.acceptedItems as bin> 
23  <li class="d-flex align-items-center mb-2"><img src="${bin.image.link.href}" class="w-2 h-2"><span class="ml-2 d-block"><a href="${bin.link}">${bin.name}</a></span></li> 
24</#list> 
25</ul> 
26 
27<#if (ObjectField_information.getData())?? && (ObjectField_information.getData())?has_content> 
28  <h4 class="mt-5 mb-3">Instructions / advice:</h4> 
29	${ObjectField_information.getData()} 
30</#if> 
31 
32<script> 
33console.log(${httpUtil.URLtoString(http_options)}); 
34</script>