Error on custom widget for Service Portal

k_lutz
Tera Expert

We have a custom widget that is used on our service portal like a custom icon widget I would say. When the portal loads I notice the following errors in the logs:

Error while fetching the host of the URL : https://XXXX.service-now.com/{{i.icon}}: java.net.URISyntaxException: Illegal character in path at index 32: https://XXXX.service-now.com/{{i.icon}}: java.base/java.net.URI$Parser.fail(URI.java:2913)

 

The issue seems to be in the setup of the HTML even though the widgets work, these errors get generated daily when people visit the page.

 

Please see screenshots below. I think the issue is with the pull of the "icon" image from the lookup table which would be like 9493939393939.iix and then used in the URL.

 

Any thoughts to what may not be coded correctly in the html?

1 ACCEPTED SOLUTION

@k_lutz ,

 

I see the issue in {{i.icon}}. Can you change it to "{{i.icon}}".

Next we will check if URL encoding is needed. But can you try above once.

 

Mark helpful if this helped.

 

Thanks,

View solution in original post

5 REPLIES 5

@k_lutz ,

Glad it worked.

 

Thanks,