<?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: Export Web Map Task Error: 'unable to connect to map server' only at  the first t in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513493#M47938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for your reply!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using 'Execute Task' web page is fine from my few tries. but note that the problem with my web app map_export only happens at the first time after the app is initially loaded into browser. one interesting thing is, if I tested it on chrome, then load it again on FF, then even if it's loaded into FF as first time, the map_export still functions well. I am wondering whether it's related to starting the printing_service on server. but I set the service running all the time...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;on proxy, this is something I am not sure whether it's related. This map_export problem happened before I set up a proxy. The reason why I need a proxy is to have feature_editing functions. the problem is there with or without proxy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is something on proxy setup:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;In initial proxy configs, there is no '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services&lt;/A&gt;&lt;SPAN&gt;'. so I added following item:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &amp;lt;serverUrl url="http://services.arcgisonline.com/ArcGIS/rest/services/"&amp;nbsp;&amp;nbsp; &lt;BR /&gt; matchAll="true"&amp;gt;&amp;lt;/serverUrl&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;however, when the app is loaded, it still reports:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; XMLHttpRequest cannot load&amp;nbsp;&amp;nbsp; &lt;A href="http://services.arcgisonline.com/ArcGIS/rest/info?f=json" rel="nofollow"&gt;http://services.arcgisonline.com/ArcGIS/rest/info?f=json&lt;/A&gt;. Origin&amp;nbsp;&amp;nbsp; &lt;A href="http://localhost" rel="nofollow"&gt;http://localhost&lt;/A&gt; is not allowed by Access-Control-Allow-Origin.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is this normal? or something related to the map_export problem? the problem details:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; "Error executing tool.: Layer "layer0": Unable to connect to map server at&amp;nbsp;&amp;nbsp; &lt;A href="http://services.arcgisonline.com/Arc..._Map/MapServer" rel="nofollow"&gt;http://services.arcgisonline.com/Arc..._Map/MapServer&lt;/A&gt;. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task)."&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; What happens when you fire the request directly at the REST endpoint?&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;ie....&amp;nbsp; &lt;BR /&gt; &lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task/execute?Web_Map_as_JSON={&amp;quot;mapOptions&amp;quot;:{&amp;quot;showAttribution&amp;quot;:true,&amp;quot;extent&amp;quot;:{&amp;quot;xmin&amp;quot;:-10349230.322242444,&amp;quot;ymin&amp;quot;:3492869.8767344095,&amp;quot;xmax&amp;quot;:-9851472.3940494,&amp;quot;ymax&amp;quot;:3888507.935138462,&amp;quot;spatialReference&amp;quot;:{&amp;quot;wkid&amp;quot;:102100}},&amp;quot;spatialReference&amp;quot;:{&amp;quot;wkid&amp;quot;:102100},&amp;quot;scale&amp;quot;:2311162.217155004},&amp;quot;operationalLayers&amp;quot;:[{&amp;quot;id&amp;quot;:&amp;quot;Ocean&amp;quot;,&amp;quot;title&amp;quot;:&amp;quot;Ocean&amp;quot;,&amp;quot;opacity&amp;quot;:1,&amp;quot;minScale&amp;quot;:591657527.591555,&amp;quot;maxScale&amp;quot;:9027.977411,&amp;quot;url&amp;quot;:&amp;quot;http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer&amp;quot;},{&amp;quot;id&amp;quot;:&amp;quot;Boundaries&amp;quot;,&amp;quot;title&amp;quot;:&amp;quot;Boundaries&amp;quot;,&amp;quot;opacity&amp;quot;:1,&amp;quot;minScale&amp;quot;:0,&amp;quot;maxScale&amp;quot;:0,&amp;quot;url&amp;quot;:&amp;quot;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer&amp;quot;,&amp;quot;visibleLayers&amp;quot;:null,&amp;quot;layers&amp;quot;:[]}],&amp;quot;exportOptions&amp;quot;:{&amp;quot;outputSize&amp;quot;:[800,1100],&amp;quot;dpi&amp;quot;:96}}&amp;amp;Format=PNG32&amp;amp;Layout_Template=MAP_ONLY" rel="nofollow"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task/execute?Web_Map_as_JSON={"mapOptions":{....&lt;/A&gt; &lt;BR /&gt; &lt;BR /&gt;is your application actually using a proxy to make the print request?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Feb 2013 12:59:54 GMT</pubDate>
    <dc:creator>SimonLeo</dc:creator>
    <dc:date>2013-02-11T12:59:54Z</dc:date>
    <item>
      <title>Export Web Map Task Error: 'unable to connect to map server' only at  the first time</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513491#M47936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am developing a web app based on ArcGIS JS API. one simple task is to export map to image. I am using &lt;/SPAN&gt;&lt;STRONG&gt;Esri Basemaps&lt;/STRONG&gt;&lt;SPAN&gt;. It behaves strangely that always pops up exception &lt;/SPAN&gt;&lt;STRONG&gt;at the first time&lt;/STRONG&gt;&lt;SPAN&gt; you execute Export_web_map task, then it will &lt;/SPAN&gt;&lt;STRONG&gt;work fine in following times&lt;/STRONG&gt;&lt;SPAN&gt;. Here, 'the first time' means right after this application is loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;The error details:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;"Error executing tool.: Layer "layer0": Unable to connect to map server at &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task)."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This case is very similar to one previous post at this forum: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/56702-Export-Web-Map-Task-Error-quot-Unable-to-connect-to-map-server...-quot" rel="nofollow noopener noreferrer" target="_blank"&gt;Export Web Map Task Error: "Unable to connect to map server..."&lt;/A&gt;&lt;SPAN&gt;. But that case happens every time user execute export_map task, while in my case it &lt;/SPAN&gt;&lt;STRONG&gt;only happens&lt;/STRONG&gt;&lt;SPAN&gt; at the first time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also have a proxy on web server since this app requires feature_editing functions. part of proxy.config:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;serverUrl url="http://services.arcgisonline.com/ArcGIS/rest/services/" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"&amp;gt;&amp;lt;/serverUrl&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrl url="http://sampleserver1.arcgisonline.com/arcgis/rest/services/" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"&amp;gt;&amp;lt;/serverUrl&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrl url="http://sampleserver2.arcgisonline.com/arcgis/rest/services/" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; token=""&amp;gt;&amp;lt;/serverUrl&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrl url="http://server.arcgisonline.com/arcgis/rest/services/"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"&amp;gt;&amp;lt;/serverUrl&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrl url="http://orthogonal.esri.com/arcgis/rest/services/"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"&amp;gt;&amp;lt;/serverUrl&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/&lt;/A&gt;&lt;SPAN&gt; in it, but it still does the same thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the proxy is &lt;/SPAN&gt;&lt;STRONG&gt;.NET based on IIS7.5&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any suggestions will be appreciated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:27:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513491#M47936</guid>
      <dc:creator>SimonLeo</dc:creator>
      <dc:date>2021-12-11T22:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: 'unable to connect to map server' only at  the first t</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513492#M47937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What happens when you fire the request directly at the REST endpoint?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ie....&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task/execute?Web_Map_as_JSON={&amp;quot;mapOptions&amp;quot;:{&amp;quot;showAttribution&amp;quot;:true,&amp;quot;extent&amp;quot;:{&amp;quot;xmin&amp;quot;:-10349230.322242444,&amp;quot;ymin&amp;quot;:3492869.8767344095,&amp;quot;xmax&amp;quot;:-9851472.3940494,&amp;quot;ymax&amp;quot;:3888507.935138462,&amp;quot;spatialReference&amp;quot;:{&amp;quot;wkid&amp;quot;:102100}},&amp;quot;spatialReference&amp;quot;:{&amp;quot;wkid&amp;quot;:102100},&amp;quot;scale&amp;quot;:2311162.217155004},&amp;quot;operationalLayers&amp;quot;:[{&amp;quot;id&amp;quot;:&amp;quot;Ocean&amp;quot;,&amp;quot;title&amp;quot;:&amp;quot;Ocean&amp;quot;,&amp;quot;opacity&amp;quot;:1,&amp;quot;minScale&amp;quot;:591657527.591555,&amp;quot;maxScale&amp;quot;:9027.977411,&amp;quot;url&amp;quot;:&amp;quot;http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer&amp;quot;},{&amp;quot;id&amp;quot;:&amp;quot;Boundaries&amp;quot;,&amp;quot;title&amp;quot;:&amp;quot;Boundaries&amp;quot;,&amp;quot;opacity&amp;quot;:1,&amp;quot;minScale&amp;quot;:0,&amp;quot;maxScale&amp;quot;:0,&amp;quot;url&amp;quot;:&amp;quot;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer&amp;quot;,&amp;quot;visibleLayers&amp;quot;:null,&amp;quot;layers&amp;quot;:[]}],&amp;quot;exportOptions&amp;quot;:{&amp;quot;outputSize&amp;quot;:[800,1100],&amp;quot;dpi&amp;quot;:96}}&amp;amp;Format=PNG32&amp;amp;Layout_Template=MAP_ONLY" rel="nofollow"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task/execute?Web_Map_as_JSON={"mapOptions":{....&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is your application actually using a proxy to make the print request?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 17:00:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513492#M47937</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-02-08T17:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: 'unable to connect to map server' only at  the first t</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513493#M47938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for your reply!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using 'Execute Task' web page is fine from my few tries. but note that the problem with my web app map_export only happens at the first time after the app is initially loaded into browser. one interesting thing is, if I tested it on chrome, then load it again on FF, then even if it's loaded into FF as first time, the map_export still functions well. I am wondering whether it's related to starting the printing_service on server. but I set the service running all the time...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;on proxy, this is something I am not sure whether it's related. This map_export problem happened before I set up a proxy. The reason why I need a proxy is to have feature_editing functions. the problem is there with or without proxy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is something on proxy setup:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;In initial proxy configs, there is no '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services&lt;/A&gt;&lt;SPAN&gt;'. so I added following item:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &amp;lt;serverUrl url="http://services.arcgisonline.com/ArcGIS/rest/services/"&amp;nbsp;&amp;nbsp; &lt;BR /&gt; matchAll="true"&amp;gt;&amp;lt;/serverUrl&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;however, when the app is loaded, it still reports:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; XMLHttpRequest cannot load&amp;nbsp;&amp;nbsp; &lt;A href="http://services.arcgisonline.com/ArcGIS/rest/info?f=json" rel="nofollow"&gt;http://services.arcgisonline.com/ArcGIS/rest/info?f=json&lt;/A&gt;. Origin&amp;nbsp;&amp;nbsp; &lt;A href="http://localhost" rel="nofollow"&gt;http://localhost&lt;/A&gt; is not allowed by Access-Control-Allow-Origin.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is this normal? or something related to the map_export problem? the problem details:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; "Error executing tool.: Layer "layer0": Unable to connect to map server at&amp;nbsp;&amp;nbsp; &lt;A href="http://services.arcgisonline.com/Arc..._Map/MapServer" rel="nofollow"&gt;http://services.arcgisonline.com/Arc..._Map/MapServer&lt;/A&gt;. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task)."&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; What happens when you fire the request directly at the REST endpoint?&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;ie....&amp;nbsp; &lt;BR /&gt; &lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task/execute?Web_Map_as_JSON={&amp;quot;mapOptions&amp;quot;:{&amp;quot;showAttribution&amp;quot;:true,&amp;quot;extent&amp;quot;:{&amp;quot;xmin&amp;quot;:-10349230.322242444,&amp;quot;ymin&amp;quot;:3492869.8767344095,&amp;quot;xmax&amp;quot;:-9851472.3940494,&amp;quot;ymax&amp;quot;:3888507.935138462,&amp;quot;spatialReference&amp;quot;:{&amp;quot;wkid&amp;quot;:102100}},&amp;quot;spatialReference&amp;quot;:{&amp;quot;wkid&amp;quot;:102100},&amp;quot;scale&amp;quot;:2311162.217155004},&amp;quot;operationalLayers&amp;quot;:[{&amp;quot;id&amp;quot;:&amp;quot;Ocean&amp;quot;,&amp;quot;title&amp;quot;:&amp;quot;Ocean&amp;quot;,&amp;quot;opacity&amp;quot;:1,&amp;quot;minScale&amp;quot;:591657527.591555,&amp;quot;maxScale&amp;quot;:9027.977411,&amp;quot;url&amp;quot;:&amp;quot;http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer&amp;quot;},{&amp;quot;id&amp;quot;:&amp;quot;Boundaries&amp;quot;,&amp;quot;title&amp;quot;:&amp;quot;Boundaries&amp;quot;,&amp;quot;opacity&amp;quot;:1,&amp;quot;minScale&amp;quot;:0,&amp;quot;maxScale&amp;quot;:0,&amp;quot;url&amp;quot;:&amp;quot;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer&amp;quot;,&amp;quot;visibleLayers&amp;quot;:null,&amp;quot;layers&amp;quot;:[]}],&amp;quot;exportOptions&amp;quot;:{&amp;quot;outputSize&amp;quot;:[800,1100],&amp;quot;dpi&amp;quot;:96}}&amp;amp;Format=PNG32&amp;amp;Layout_Template=MAP_ONLY" rel="nofollow"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task/execute?Web_Map_as_JSON={"mapOptions":{....&lt;/A&gt; &lt;BR /&gt; &lt;BR /&gt;is your application actually using a proxy to make the print request?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 12:59:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513493#M47938</guid>
      <dc:creator>SimonLeo</dc:creator>
      <dc:date>2013-02-11T12:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: 'unable to connect to map server' only at  the first t</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513494#M47939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you certain your proxy is working correctly?&amp;nbsp; I had a similar issue when trying to create a print task to a web map; the first time I clicked the Print button I would get an error, but it would work if I clicked it a second time.&amp;nbsp; It turned out my proxy wasn't set up properly; correcting that fixed the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 14:50:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513494#M47939</guid>
      <dc:creator>BrettGreenfield__DNR_</dc:creator>
      <dc:date>2013-02-11T14:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: 'unable to connect to map server' only at  the first t</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513495#M47940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this seems exactly what i am having now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but how to double check whether my proxy is working properly or not? as far as i know, the feature_editing functions run well which means the proxy should be fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do you have any recollections on what problem your proxy had? and how to fix it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But again, this problem happened before even the proxy is used. Does printing basemaps from 'services.arcgisonline.com' requires a proxy?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you certain your proxy is working correctly?&amp;nbsp; I had a similar issue when trying to create a print task to a web map; the first time I clicked the Print button I would get an error, but it would work if I clicked it a second time.&amp;nbsp; It turned out my proxy wasn't set up properly; correcting that fixed the problem.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 16:52:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513495#M47940</guid>
      <dc:creator>SimonLeo</dc:creator>
      <dc:date>2013-02-11T16:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: 'unable to connect to map server' only at  the first t</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513496#M47941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe my error was due to downloading the proxy from an older help page (which had an older version of the proxy).&amp;nbsp; Once I found the newest version of the proxy and had it set up, it fixed my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just spent a few minutes looking through the new JS API Resources page trying to find the newest version of the proxy for you, but I can't seem to track it down.&amp;nbsp; ESRI really needs to work on getting a search function up and running again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 17:18:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513496#M47941</guid>
      <dc:creator>BrettGreenfield__DNR_</dc:creator>
      <dc:date>2013-02-11T17:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: 'unable to connect to map server' only at  the first t</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513497#M47942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the page is here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#ags_proxy"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#ags_proxy&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I did use the latest version. but let me double check...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I believe my error was due to downloading the proxy from an older help page (which had an older version of the proxy).&amp;nbsp; Once I found the newest version of the proxy and had it set up, it fixed my problem.&lt;BR /&gt;&lt;BR /&gt;I just spent a few minutes looking through the new JS API Resources page trying to find the newest version of the proxy for you, but I can't seem to track it down.&amp;nbsp; ESRI really needs to work on getting a search function up and running again!&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 17:20:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513497#M47942</guid>
      <dc:creator>SimonLeo</dc:creator>
      <dc:date>2013-02-11T17:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: 'unable to connect to map server' only at  the first t</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513498#M47943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Simon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using your own print service hosted on your domains? or, you just use the one on sampleserver6 from arcgisonline.com?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here I'm trying to explain the detailed information about use cases of proxy page. Hopefully this will clear up all proxy page related mysteries. The sample link for item 6 is on my local machine, so that I couldn't share it. But feel free to ask any questions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The general rule regarding when proxy page is required is this: when cross domain requests are required, always configure a proxy page for the application. The ArcGIS API for JavaScript is smart enough to determine when to use it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The same origin policy is a security concept, which restricts requests made by an application to the host domain of the application. For example, if the web application is hosted on &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/www.xyz.com"&gt;www.xyz.com&lt;/A&gt;&lt;SPAN&gt;, when there is any request to any domain that is not xyz.com, it is not allowed. There are exceptions to this policy: CSS, images and JavaScript loaded through link, img and script tags, respectively, are allowed to make cross domain requests. For more detailed info, refer to the following: same origin policy on Wikipedia (&lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Same_origin_policy"&gt;http://en.wikipedia.org/wiki/Same_origin_policy&lt;/A&gt;&lt;SPAN&gt;) same origin policy on the Mozilla Developer Network(MDN) (&lt;/SPAN&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/JavaScript/Same_origin_policy_for_JavaScript?redirectlocale=en-US&amp;amp;redirectslug=Same_origin_policy_for_JavaScript"&gt;https://developer.mozilla.org/en-US/docs/JavaScript/Same_origin_policy_for_JavaScript?redirectlocale=en-US&amp;amp;redirectslug=Same_origin_policy_for_JavaScript&lt;/A&gt;&lt;SPAN&gt;). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is a detailed list of common scenarios that require cross domain requests. In each case, an explanation is provided describing whether or not a proxy page will be used. In all cases, a proxy should be set up so that an application can use it if necessary. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. If the services support CORS, (all 10.1 ArcGIS Server service should support CORS), and at the same time, if the browsers support CORS as well, it doesn�??t need proxy. Here is an example. &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/samples/widget_print/index.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/samples/widget_print/index.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;If using Firefox or Chrome, this application sends the print request without using the proxy page. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But IEs don�??t support CORS fully, as application developers, it�??s always safe to put proxy page to satisfy all browsers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Even without CORS support, for instances, ArcGIS Server 10 services don�??t support CORS, since the services support JSONP, only when the request is through POST, it needs proxy page. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; a. The request is through GET, proxy is not necessary. An example &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/samples/query_nomap/index.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/samples/query_nomap/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By examing the request, the query is going through an HTTP GET through a URL, you can see the response has a jsonpCallback attached to the returned json, which eliminates the usage of proxy page. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; b. The request is through POST, because the request is large enough to exceed 2000 characters. For example: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/samples/query_gpresult/index.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/samples/query_gpresult/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; c. The request is through POST, because the request is required to be POST by server, such as editing cases where POST is mandatory. &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/samples/ed_default_editingwidget/index.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/samples/ed_default_editingwidget/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For case 2.b and 2.c, the response doesn�??t have the callback parameter attached ahead of the json. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In short, when JSONP + GET, proxy page is not needed. When JSONP + POST, proxy page is necessary. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. If the response is other formats than JSONP, proxy page is always needed. An example is when loading WMTS layer, the first request is to get the capabilities XML, since the format is not JSONP, it always has to go through a proxy page to get the XML. &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/samples/layers_wmtslayer/index.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/samples/layers_wmtslayer/index.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;You can see that the capabilities XML is got through a proxy page. (even though the sample doesn't work at this moment due to the service is down, you can still see the request through proxy).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. When uploading files, some browsers (of course, IE) don�??t support the native uploading method, so it is always required to have a proxy page in between so that iframe can do the job of uploading. &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/samples/ed_attachments/index.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/samples/ed_attachments/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5. When generating a token through a token service, since neither ArcGIS Server 10 nor ArcGIS Server 10.1 token service support CORS, proxy page is always needed. An example is when use identity manager. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;6. It is possible to force to use proxy page all the time by setting esri.config.defaults.io.alwaysUseProxy = true. For some cases, the services may be behind fire wall or other security settings, proxy is always necessary. &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost/localjsapi/test/alwaysproxy.html"&gt;http://localhost/localjsapi/test/alwaysproxy.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;You can see all the requests to get the image tiles are through a proxy page. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All of the above use cases are under the assumption that there are cross domain requests. If all the requests are to the same domain as the application, it never needs proxy page. Even putting a proxy page there, it won�??t use it. For example: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://servicesbeta.esri.com/demos/widget/widget_identitymanager.html"&gt;https://servicesbeta.esri.com/demos/widget/widget_identitymanager.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;The app is the same domain as the token service, so it ignores the proxy page setting and get the token directly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 21:38:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513498#M47943</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2013-02-11T21:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: 'unable to connect to map server' only at  the first t</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513499#M47944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Simon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For you case, it's item 1 on the list in my previous post. You were seeing the msg in console: XMLHttpRequest cannot load &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com/Arc...st/info?f=json"&gt;http://services.arcgisonline.com/Arc...st/info?f=json&lt;/A&gt;&lt;SPAN&gt;. Origin &lt;/SPAN&gt;&lt;A href="http://localhost"&gt;http://localhost&lt;/A&gt;&lt;SPAN&gt; is not allowed by Access-Control-Allow-Origin. Esri JS API always sends a tentative request to test if the service supports CORS. This msg tells that you have cross domain requests, and the tests for CORS finished. Later on, when more requests for this domain, it will decided whether use proxy page or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If your print service is not under arcgisonline.com, then before you click the print button, JS API doesn't have an opportunity to test CORS support. When clicking print, it will send the test request, but the print request doesn't wait for the result of the test. That's why the first time it will go through proxy page. And if the proxy page happens to have some problems, the first request will fail. But the next time, JS API already finished the test for CORS, it won't use proxy page any more and the request will be through successfully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes, if the test call finished soon enough before the print request, even the first time, it won't need proxy page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, as I said for item 1 in the list, always put a proxy page there for this case if CORS may be supported. So that you will not run into the issue that print service is under some domains that have not been tested. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the issue on your case is on your proxy page. As Brett pointed out that he fixed the issue just by fixing the proxy page.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 21:59:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513499#M47944</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2013-02-11T21:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: 'unable to connect to map server' only at  the first t</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513500#M47945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One more thing, this is not just for print service. It happens for any types of service, for example geometry service. If you are trying to reproject a geometry through a geometry service, and the domain of the geometry service has not been accessed before, the same situation will happen. It will send a call to rest info to decide if CORS is supported or not, but the first request to the geometry service will go through proxy since it doesn't know the result yet from the rest info call.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 22:17:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513500#M47945</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2013-02-11T22:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: 'unable to connect to map server' only at  the first t</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513501#M47946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;well, Jian! First of all, thank you for your very detailed explanation. It helps a lot understanding those behind-scenes. Even though I am pretty sure I used latest proxy package, to give it another shot, I replaced proxy pages with the ones from new download. We will give it more tests, and I wish this issue will be fixed by doing this (I will get back and accept answer then). Appreciate the help from you guys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;One more thing, this is not just for print service. It happens for any types of service, for example geometry service. If you are trying to reproject a geometry through a geometry service, and the domain of the geometry service has not been accessed before, the same situation will happen. It will send a call to rest info to decide if CORS is supported or not, but the first request to the geometry service will go through proxy since it doesn't know the result yet from the rest info call.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 11:59:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513501#M47946</guid>
      <dc:creator>SimonLeo</dc:creator>
      <dc:date>2013-02-12T11:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: 'unable to connect to map server' only at  the first t</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513502#M47947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm getting the same error message when trying to make a request directly from the REST endpoint, so no proxy involved, right? Get the error even when I'm remoted in to the machine where Server resides.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 16:03:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513502#M47947</guid>
      <dc:creator>MikeKillion</dc:creator>
      <dc:date>2013-02-12T16:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: 'unable to connect to map server' only at  the first t</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513503#M47948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Don't know why the issue is still there. Are there any things I should be careful when setting up a proxy on IIS?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;One more thing, this is not just for print service. It happens for any types of service, for example geometry service. If you are trying to reproject a geometry through a geometry service, and the domain of the geometry service has not been accessed before, the same situation will happen. It will send a call to rest info to decide if CORS is supported or not, but the first request to the geometry service will go through proxy since it doesn't know the result yet from the rest info call.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 13:43:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513503#M47948</guid>
      <dc:creator>SimonLeo</dc:creator>
      <dc:date>2013-02-19T13:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: 'unable to connect to map server' only at  the first t</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513504#M47949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For your case, the reason is the map service is not accessible by the print service. Please make sure the map service is public accessible if the print service is not an internal service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm getting the same error message when trying to make a request directly from the REST endpoint, so no proxy involved, right? Get the error even when I'm remoted in to the machine where Server resides.&lt;BR /&gt;&lt;BR /&gt;Any thoughts appreciated.&lt;BR /&gt;&lt;BR /&gt;Mike&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 20:28:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513504#M47949</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2013-02-19T20:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: 'unable to connect to map server' only at  the first t</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513505#M47950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi GIS folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created a print widget into my web application on arcgis.com hosted site and it uses the default print service from ARCGIS &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task" rel="nofollow" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which works perfectly fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try use my own print service using Export Web Map task using ARCGIS Server 10.1, I am getting the following error from firebug, "Request timeout exceeded" - Can anyone tell me what might be the reason for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, it loads all the custom templates defined in our print service, and when I click on the layout templates, the button changes to printing, but, nothing happens to show print map in pdf format. - firebug shows post request says that Request timeout exceeded. Please help on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ganesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 12:26:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513505#M47950</guid>
      <dc:creator>GaneshSolai_Sambandam</dc:creator>
      <dc:date>2014-01-06T12:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map Task Error: 'unable to connect to map server' only at  the first t</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513506#M47951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@ganesh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;just a guess, but possibly the operation supported by your actual service (either 'execute' if the service is synchronous and 'submitJob' if asynchronous) doesn't match the operation which is being called from the application itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if this is the case, you could set the 'async' property in the options of the Print Widget &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jsapi/print-amd.html#print1"&gt;constructor&lt;/A&gt;&lt;SPAN&gt; as appropriate.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 16:12:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-web-map-task-error-unable-to-connect-to-map/m-p/513506#M47951</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-01-06T16:12:00Z</dc:date>
    </item>
  </channel>
</rss>

