<?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 Re: esri.request is delaying sending an error callback with KML file in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-request-is-delaying-sending-an-error-callback/m-p/628113#M58650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;esri.request has a timeout option that lets you reduce the default timeout period. The default timeout is about 1 minute. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jsapi/namespace_esri-amd.html#request" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/en/javascript/jsapi/namespace_esri-amd.html#request&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Oct 2013 16:24:15 GMT</pubDate>
    <dc:creator>KellyHutchins</dc:creator>
    <dc:date>2013-10-02T16:24:15Z</dc:date>
    <item>
      <title>esri.request is delaying sending an error callback with KML file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-request-is-delaying-sending-an-error-callback/m-p/628112#M58649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See the sample script at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://jsfiddle.net/slead/Lgbkm/3/" rel="nofollow" target="_blank"&gt;http://jsfiddle.net/slead/Lgbkm/3/&lt;/A&gt;&lt;SPAN&gt; where I'm using esri.request to make an AJAX call to a KML file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This call fails (I need to pass it via &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://utility.arcgis.com/sharing/kml?url=" rel="nofollow" target="_blank"&gt;http://utility.arcgis.com/sharing/kml?url=&lt;/A&gt;&lt;SPAN&gt;) but that's not the issue. The problem is that the error callback isn't called for nearly a minute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It should return an "error" popup but there's a long delay before it appears. If I use &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;url: "adsfdsaf",&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; the error is thrown immediately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This isn't a pressing issue as I have a workaround (use the utility method if the URL contains ".kml" but I'm curious as to why this is occurring.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 01:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-request-is-delaying-sending-an-error-callback/m-p/628112#M58649</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2013-10-02T01:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: esri.request is delaying sending an error callback with KML file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-request-is-delaying-sending-an-error-callback/m-p/628113#M58650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;esri.request has a timeout option that lets you reduce the default timeout period. The default timeout is about 1 minute. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jsapi/namespace_esri-amd.html#request" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/en/javascript/jsapi/namespace_esri-amd.html#request&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 16:24:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-request-is-delaying-sending-an-error-callback/m-p/628113#M58650</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2013-10-02T16:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: esri.request is delaying sending an error callback with KML file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-request-is-delaying-sending-an-error-callback/m-p/628114#M58651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Kelly&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 19:55:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-request-is-delaying-sending-an-error-callback/m-p/628114#M58651</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2013-10-02T19:55:25Z</dc:date>
    </item>
  </channel>
</rss>

