<?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: Why a proxy error when using QueryTask? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-a-proxy-error-when-using-querytask/m-p/626729#M58498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Derek.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your explanation makes perfect sense now. The left feature is very basic so it the POST url is under the 2k character threshhold. The right feature has about 35 vertices due to the curves. I looked at the POST info and the vertex coordinate pairs are almost 40 characters long so I'm already at about 700 characters with just the definition of the linear feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not currently specifying a proxy using esri.config.defaults.io.proxyUrl but I'll be working with my IT to finally get that set up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2012 21:57:49 GMT</pubDate>
    <dc:creator>SteveCole</dc:creator>
    <dc:date>2012-10-18T21:57:49Z</dc:date>
    <item>
      <title>Why a proxy error when using QueryTask?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-a-proxy-error-when-using-querytask/m-p/626727#M58496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is just bizarre.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the attached screenshot, you'll see two vertical cyan polyline features belonging to the same feature layer (and served up as a dynamic map service). I have an infoWindow set up for the feature layer and when it opens, it takes the feature's geometry and then runs a queryTask against a polygon feature layer also on the map (thin blue outlines with no fill in the screenshot).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, when I click on the left cyan feature, my queryTask runs just fine. When I click on the righthand cyan feature, it returns a message to the console window: "esri.config.defaults.io.proxyUrl is not set" and basically fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Same dataset but different outcomes. Why is that??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]18558[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 20:03:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-a-proxy-error-when-using-querytask/m-p/626727#M58496</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2012-10-18T20:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why a proxy error when using QueryTask?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-a-proxy-error-when-using-querytask/m-p/626728#M58497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It comes down to the size of the geometry of your feature. Due to browser restrictions, when a URL is &amp;gt; 2k characters, the API uses a proxy. When you execute a queryTask, the geometry is sent as part of the URL (take a look in your browser's dev tools). Depending on how many vertices make up the feature's geometry, a URL can exceed the 2k character limit. I'm guessing that's what's happening here??? one feature has a few vertices so it doesn't need the proxy. When a larger feature is used, the URL is longer so a proxy is required.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 20:19:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-a-proxy-error-when-using-querytask/m-p/626728#M58497</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-10-18T20:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why a proxy error when using QueryTask?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-a-proxy-error-when-using-querytask/m-p/626729#M58498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Derek.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your explanation makes perfect sense now. The left feature is very basic so it the POST url is under the 2k character threshhold. The right feature has about 35 vertices due to the curves. I looked at the POST info and the vertex coordinate pairs are almost 40 characters long so I'm already at about 700 characters with just the definition of the linear feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not currently specifying a proxy using esri.config.defaults.io.proxyUrl but I'll be working with my IT to finally get that set up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 21:57:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-a-proxy-error-when-using-querytask/m-p/626729#M58498</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2012-10-18T21:57:49Z</dc:date>
    </item>
  </channel>
</rss>

