<?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>topic Request Error Event Multiple Messages in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/request-error-event-multiple-messages/m-p/819682#M210</link>
    <description>&lt;P&gt;I've been messing around with the &lt;STRONG&gt;requesterror&lt;/STRONG&gt; event.&amp;nbsp; I have a &lt;A href="https://codepen.io/pmckinney/pen/XVJezp/" target="_blank"&gt;CodePen&lt;/A&gt;&amp;nbsp;where I'm testing stuff.&amp;nbsp; If you change the URL for either service to the "bad" URL, there are multiple error messages.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to use a conditional statement or other method to only display the message once? For example, just using the straight service URL, as opposed to "/query" or "/exportto"?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know I could add a generic message, but I would like to add the service URL in the message.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2023 13:01:07 GMT</pubDate>
    <dc:creator>PatrickMcKinney1</dc:creator>
    <dc:date>2023-08-28T13:01:07Z</dc:date>
    <item>
      <title>Request Error Event Multiple Messages</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/request-error-event-multiple-messages/m-p/819682#M210</link>
      <description>&lt;P&gt;I've been messing around with the &lt;STRONG&gt;requesterror&lt;/STRONG&gt; event.&amp;nbsp; I have a &lt;A href="https://codepen.io/pmckinney/pen/XVJezp/" target="_blank"&gt;CodePen&lt;/A&gt;&amp;nbsp;where I'm testing stuff.&amp;nbsp; If you change the URL for either service to the "bad" URL, there are multiple error messages.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to use a conditional statement or other method to only display the message once? For example, just using the straight service URL, as opposed to "/query" or "/exportto"?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know I could add a generic message, but I would like to add the service URL in the message.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 13:01:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/request-error-event-multiple-messages/m-p/819682#M210</guid>
      <dc:creator>PatrickMcKinney1</dc:creator>
      <dc:date>2023-08-28T13:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Request Error Event Multiple Messages</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/request-error-event-multiple-messages/m-p/819683#M211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the error is definitely going to fire the event every time, but you could add some logic in your handler to strip operations like `/export` and `/query` from the url and compare it to what you've already displayed and only selectively bubble up a warning to users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 20:19:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/request-error-event-multiple-messages/m-p/819683#M211</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2017-12-13T20:19:23Z</dc:date>
    </item>
  </channel>
</rss>

