<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Error on custom widget for Service Portal in ServiceNow AI Platform forum</title>
    <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/error-on-custom-widget-for-service-portal/m-p/2780980#M193271</link>
    <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/213239"&gt;@k_lutz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see the issue in {{i.icon}}. Can you change it to&amp;nbsp;"{{i.icon}}".&lt;/P&gt;&lt;P&gt;Next we will check if URL encoding is needed. But can you try above once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark helpful if this helped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2024 16:47:58 GMT</pubDate>
    <dc:creator>ahefaz1</dc:creator>
    <dc:date>2024-01-04T16:47:58Z</dc:date>
    <item>
      <title>Error on custom widget for Service Portal</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/error-on-custom-widget-for-service-portal/m-p/2779654#M193224</link>
      <description>&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error while fetching the host of the URL : &lt;A href="https://XXXX.service-now.com/{{i.icon" target="_blank"&gt;https://XXXX.service-now.com/{{i.icon&lt;/A&gt;}}: java.net.URISyntaxException: Illegal character in path at index 32: &lt;A href="https://XXXX.service-now.com/{{i.icon" target="_blank"&gt;https://XXXX.service-now.com/{{i.icon&lt;/A&gt;}}: java.base/java.net.URI$Parser.fail(URI.java:2913)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;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.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;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.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Any thoughts to what may not be coded correctly in the html?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 22:09:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/error-on-custom-widget-for-service-portal/m-p/2779654#M193224</guid>
      <dc:creator>k_lutz</dc:creator>
      <dc:date>2024-01-03T22:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error on custom widget for Service Portal</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/error-on-custom-widget-for-service-portal/m-p/2779671#M193225</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/213239"&gt;@k_lutz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have similar images on my portal.&lt;/P&gt;&lt;P&gt;What I do to get the image right is I dot walk to the image field on the glideRecord object.&lt;/P&gt;&lt;P&gt;Below is your code, I am assuming that the u_image field is an image type field on your table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;vr.u_image+'.iix'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please mark helpful, if this helped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 22:54:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/error-on-custom-widget-for-service-portal/m-p/2779671#M193225</guid>
      <dc:creator>ahefaz1</dc:creator>
      <dc:date>2024-01-03T22:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error on custom widget for Service Portal</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/error-on-custom-widget-for-service-portal/m-p/2780559#M193262</link>
      <description>&lt;P&gt;Thanks for the suggestion. I am currently getting the image. I tried your code and it also gets the image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is that it works but in our log file it will generate the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Error while fetching the host of the URL : &lt;A href="https://neutest.service-now.com/{{i.icon" target="_blank" rel="noopener"&gt;https://xxxx.service-now.com/{{i.icon&lt;/A&gt;}}: java.net.URISyntaxException: Illegal character in path at index 32: &lt;A href="https://neutest.service-now.com/{{i.icon}}:" target="_blank" rel="noopener"&gt;https://xxxx.service-now.com/{{i.icon}}:&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it has something to do with the way the URL information is coming back or being used in the HTML section but not sure what is not setup correctly. The person who created this widget did so several years ago and is no longer here...but we get these errors daily.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 04 Jan 2024 13:16:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/error-on-custom-widget-for-service-portal/m-p/2780559#M193262</guid>
      <dc:creator>k_lutz</dc:creator>
      <dc:date>2024-01-04T13:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error on custom widget for Service Portal</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/error-on-custom-widget-for-service-portal/m-p/2780980#M193271</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/213239"&gt;@k_lutz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see the issue in {{i.icon}}. Can you change it to&amp;nbsp;"{{i.icon}}".&lt;/P&gt;&lt;P&gt;Next we will check if URL encoding is needed. But can you try above once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark helpful if this helped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 16:47:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/error-on-custom-widget-for-service-portal/m-p/2780980#M193271</guid>
      <dc:creator>ahefaz1</dc:creator>
      <dc:date>2024-01-04T16:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error on custom widget for Service Portal</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/error-on-custom-widget-for-service-portal/m-p/2781218#M193273</link>
      <description>&lt;P&gt;Thanks for the assistance. I used your suggestions and played with the server script and the HTML and got the following to work without showing that parsing error in the system log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the HTML:&lt;/P&gt;&lt;P&gt;&amp;lt;img ng-src="{{::i.icon + '.iix'}}" alt=""/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in server script:&lt;/P&gt;&lt;P&gt;items.icon = vr.getValue('u_image');&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 19:21:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/error-on-custom-widget-for-service-portal/m-p/2781218#M193273</guid>
      <dc:creator>k_lutz</dc:creator>
      <dc:date>2024-01-04T19:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error on custom widget for Service Portal</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/error-on-custom-widget-for-service-portal/m-p/2781223#M193274</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/213239"&gt;@k_lutz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Glad it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 19:25:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/error-on-custom-widget-for-service-portal/m-p/2781223#M193274</guid>
      <dc:creator>ahefaz1</dc:creator>
      <dc:date>2024-01-04T19:25:25Z</dc:date>
    </item>
  </channel>
</rss>

