<?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 PrintTask &amp;amp;amp;quot;onError&amp;amp;amp;quot; is not working as expected in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-amp-amp-quot-onerror-amp-amp-quot-is-not/m-p/615214#M57522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See the attached sample, which loads a simple map with a tiled layer and attempts to run a printTask using a sample Esri server at &lt;/SPAN&gt;&lt;A href="http://servicesbeta4.esri.com/arcgis/rest/services/Utilities/ExportWebMap/GPServer/Export Web Map Task" rel="nofollow noopener noreferrer" target="_blank"&gt;http://servicesbeta4.esri.com/arcgis/rest/services/Utilities/ExportWebMap/GPServer/Export Web Map Task&lt;BR /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
printTask.execute(params, printResult, printError);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you watch in FireBug, this immediately returns an error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;NetworkError: 503 Service Unavailable... server is at capacity&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;However, the printError function doesn't seem to fire, and doesn't contain the message about the server being unavailable/at capacity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: it does correctly return an error response if I point it to another print server which exists but is switched off.&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>Sun, 12 Dec 2021 02:18:14 GMT</pubDate>
    <dc:creator>StephenLead</dc:creator>
    <dc:date>2021-12-12T02:18:14Z</dc:date>
    <item>
      <title>PrintTask &amp;amp;quot;onError&amp;amp;quot; is not working as expected</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-amp-amp-quot-onerror-amp-amp-quot-is-not/m-p/615214#M57522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See the attached sample, which loads a simple map with a tiled layer and attempts to run a printTask using a sample Esri server at &lt;/SPAN&gt;&lt;A href="http://servicesbeta4.esri.com/arcgis/rest/services/Utilities/ExportWebMap/GPServer/Export Web Map Task" rel="nofollow noopener noreferrer" target="_blank"&gt;http://servicesbeta4.esri.com/arcgis/rest/services/Utilities/ExportWebMap/GPServer/Export Web Map Task&lt;BR /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
printTask.execute(params, printResult, printError);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you watch in FireBug, this immediately returns an error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;NetworkError: 503 Service Unavailable... server is at capacity&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;However, the printError function doesn't seem to fire, and doesn't contain the message about the server being unavailable/at capacity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: it does correctly return an error response if I point it to another print server which exists but is switched off.&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>Sun, 12 Dec 2021 02:18:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-amp-amp-quot-onerror-amp-amp-quot-is-not/m-p/615214#M57522</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2021-12-12T02:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask "onError" is not working as expected</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-amp-amp-quot-onerror-amp-amp-quot-is-not/m-p/615215#M57523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you ever get a resolution to this? I'm having this exact problem and am resorting to hooking up a 3 minute setTimeout function to manually call the onError callback. Really don't want to see this code in production if I can avoid it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. Sorry if I got your hopes up that this might be a solution... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 21:50:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-amp-amp-quot-onerror-amp-amp-quot-is-not/m-p/615215#M57523</guid>
      <dc:creator>MichaelParry</dc:creator>
      <dc:date>2013-04-10T21:50:47Z</dc:date>
    </item>
  </channel>
</rss>

