<?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: Etags and Intermittent QueryTask Server Errors in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/etags-and-intermittent-querytask-server-errors/m-p/589375#M55078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No it's not a public service... maybe I'll try and get it through the firewall and repost the question.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2012 20:26:41 GMT</pubDate>
    <dc:creator>DouglasHall</dc:creator>
    <dc:date>2012-12-06T20:26:41Z</dc:date>
    <item>
      <title>Etags and Intermittent QueryTask Server Errors</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/etags-and-intermittent-querytask-server-errors/m-p/589373#M55076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using jsapi 3.2 and server 10.11, running a simple intersection queryTask on a polygon AGSDynamicService, see below, and it fails half of the time with HTTP 200 and response payload {"error":{"code":400,"message":"Unable to complete operation.","details":[]}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone been having a similar problem? Do these Etags make sense? I'm keying in on the Etag strangeness because it seems like I should be getting 304 not modifieds when Etags are available or at least the whole response again -- not errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var query = new esri.tasks.Query(),
&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask = new esri.tasks.QueryTask(SERVICE_PATH_OPERATIONAL_MAP);

query.geometry = mapPoint;
query.outFields = ["DAC", "MHI", "GEOID10"];
queryTask.execute(query, function (res) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; //do something
}, function (err) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(err.message);
});
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the series of events:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;----------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Clear browser cache&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. a. Send request with query&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. Get 200 response with GOOD answer and Etag 1346882992&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. a. Send request with same query and If-None-Match 1346882992&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. Get 200 response with ERROR answer and Etag bdb51271&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. a. Send request with same query and If-None-Match bdb51271&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. Get 200 response with GOOD answer and Etag 1346882992&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. a. Send request with same query and If-None-Match 1346882992&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. Get 200 response with ERROR answer and Etag bdb51271&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. a. Send request with same query and If-None-Match bdb51271&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. Get 200 response with GOOD answer and Etag 1346882992&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. a. Send request with same query and If-None-Match 1346882992&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. Get 200 response with ERROR answer and Etag bdb51271&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using wikipedia for how Etags should generally work? &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/HTTP_ETag" rel="nofollow noopener noreferrer" target="_blank"&gt;http://en.wikipedia.org/wiki/HTTP_ETag&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:19:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/etags-and-intermittent-querytask-server-errors/m-p/589373#M55076</guid>
      <dc:creator>DouglasHall</dc:creator>
      <dc:date>2021-12-12T01:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Etags and Intermittent QueryTask Server Errors</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/etags-and-intermittent-querytask-server-errors/m-p/589374#M55077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've seen something similar once previously but with an async GP service instead of a query task. I don't currently have a fix or a good work around.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a public URL for your service?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 14:27:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/etags-and-intermittent-querytask-server-errors/m-p/589374#M55077</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-12-06T14:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Etags and Intermittent QueryTask Server Errors</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/etags-and-intermittent-querytask-server-errors/m-p/589375#M55078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No it's not a public service... maybe I'll try and get it through the firewall and repost the question.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 20:26:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/etags-and-intermittent-querytask-server-errors/m-p/589375#M55078</guid>
      <dc:creator>DouglasHall</dc:creator>
      <dc:date>2012-12-06T20:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Etags and Intermittent QueryTask Server Errors</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/etags-and-intermittent-querytask-server-errors/m-p/589376#M55079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This looks like it's NIM086349 which was introduced with service pack 1 for ArcGIS Server 10.1. Can you open a call with support and request to be added to this bug?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 18:25:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/etags-and-intermittent-querytask-server-errors/m-p/589376#M55079</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-12-07T18:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Etags and Intermittent QueryTask Server Errors</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/etags-and-intermittent-querytask-server-errors/m-p/589377#M55080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I hit the same issue and I found this thread,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the request is like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;success,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fail,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;success,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fail,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;......&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using this work around:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;because queryTask.execute() accept the third parameter as err handling function, I insert the function to call queryTask.execute() again in it and it works almost all the time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 19:53:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/etags-and-intermittent-querytask-server-errors/m-p/589377#M55080</guid>
      <dc:creator>ZachLiu1</dc:creator>
      <dc:date>2013-11-14T19:53:08Z</dc:date>
    </item>
  </channel>
</rss>

