<?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: definition query breaks with proxy setup in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-query-breaks-with-proxy-setup/m-p/759203#M70273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've closed the case with Esri unresolved.&amp;nbsp; There is currently not a work around for lower versions of curl.&amp;nbsp; The issue has been reported to the proxy team and there is an open issue for it on Github.&amp;nbsp; Follow the repo if you want to stay informed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/resource-proxy" title="https://github.com/Esri/resource-proxy"&gt;Esri/resource-proxy · GitHub&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Dec 2014 15:19:07 GMT</pubDate>
    <dc:creator>melodiking</dc:creator>
    <dc:date>2014-12-16T15:19:07Z</dc:date>
    <item>
      <title>definition query breaks with proxy setup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-query-breaks-with-proxy-setup/m-p/759197#M70267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a definition query on a feature service hosted on ArcGIS Online that breaks when I set up up a proxy and can't figure it what is causing it to break.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proxy page was setup according to instructions enclosed in the Esri proxy github folder (see: &lt;A href="https://github.com/Esri/resource-proxy" title="https://github.com/Esri/resource-proxy"&gt;Esri/resource-proxy · GitHub&lt;/A&gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feature layers load fine using proxy with multiple projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When query string is short, proxy send a GET request. No problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When query is longer than 2048 characters, proxy sends a POST request. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes sense.&amp;nbsp; My understanding is that one of the benefits of setting up a proxy page is so that you can send longer requests (see: &lt;A href="https://developers.arcgis.com/javascript/jshelp/ags_proxy.html" title="https://developers.arcgis.com/javascript/jshelp/ags_proxy.html"&gt;Using the proxy | Guide | ArcGIS API for JavaScript&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following error in my console:&lt;/P&gt;&lt;P&gt;"Error: Cannot perform query. Invalid query parameters. {code: 400, message: "Cannot perform query. Invalid query parameters.", details: Array[1], log: undefined, httpCode: 400…}_ssl: undefinedcode: 400details: Array[1]0: "'geometry' parameter is invalid"length: 1__proto__: Array[0]httpCode: 400log: undefinedmessage: "Unable to draw graphic (null): Cannot perform query. Invalid query parameters."stack: (...)get stack: function () { [native code] }set stack: function () { [native code] }__proto__: d...."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 21:55:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-query-breaks-with-proxy-setup/m-p/759197#M70267</guid>
      <dc:creator>melodiking</dc:creator>
      <dc:date>2014-10-29T21:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: definition query breaks with proxy setup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-query-breaks-with-proxy-setup/m-p/759198#M70268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Melo, did you get this to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you get back "&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 12.7272720336914px;"&gt;Invalid query parameters", did you try going to the HTML rest endpoint and using the same query parameters?&amp;nbsp; If so, could you share the actual proxied request that fails with POST?&amp;nbsp; &lt;SPAN style="font-size: 12.7272720336914px;"&gt;Is the service public?&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 01:41:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-query-breaks-with-proxy-setup/m-p/759198#M70268</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2014-11-12T01:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: definition query breaks with proxy setup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-query-breaks-with-proxy-setup/m-p/759199#M70269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="s1" style="line-height: 1.5;"&gt;No, the issue hasn’t been resolved.&amp;nbsp; I have a support case open (#&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;01579392) and have been troubleshooting with Jesvin off and on for the past week with no luck.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p4"&gt;&lt;/P&gt;&lt;P class="p3"&gt;Yes.&amp;nbsp; I’ve tried submitting the same statement through the rest endpoint as a POST request and I receive the expected results.&amp;nbsp; Attached is the request and response error being generated.&lt;/P&gt;&lt;P class="p3"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Unfortunately, the service is not public.&amp;nbsp; I’m trying to set up the proxy page locally before I push it to the live (but unpublicized) site.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 03:35:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-query-breaks-with-proxy-setup/m-p/759199#M70269</guid>
      <dc:creator>melodiking</dc:creator>
      <dc:date>2014-11-12T03:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: definition query breaks with proxy setup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-query-breaks-with-proxy-setup/m-p/759200#M70270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a temporary public feature service with a subset of the data (&lt;A href="http://services.arcgis.com/o6oETlrWetREI1A2/arcgis/rest/services/WhalemAPP_Sample_SEAK/FeatureServer/0/query" style="color: #1155cc; font-family: arial, sans-serif;" target="_blank" title="http://services.arcgis.com/o6oETlrWetREI1A2/arcgis/rest/services/WhalemAPP_Sample_SEAK/FeatureServer/0/query"&gt;http://services.arcgis.com/o6oETlrWetREI1A2/arcgis/rest/services/WhalemAPP_Sample_SEAK/FeatureServer/0/query&lt;/A&gt; ).&amp;nbsp; &lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;The only other difference between this feature service and the secured version is the DATE field is replaced with DATE_.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An issue was submitted on the github page by the tech support person I am working with at Esri (&lt;A href="https://github.com/Esri/resource-proxy/issues/162" title="https://github.com/Esri/resource-proxy/issues/162"&gt;PHP: failed to send over long where statement · Issue #162 · Esri/resource-proxy · GitHub&lt;/A&gt; ).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query works through REST, without a proxy, and with a dotnet proxy.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't work with the PHP proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the following request:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;(SpeciesCategory = 3 OR SpeciesCategory = 1 OR SpeciesCategory = 2 OR SpeciesCategory = 4) AND (DATE_&amp;gt;='2013-10-26 00:00:00' AND DATE_&amp;lt;='2014-11-17 23:59:59') AND ("TRACK_UNIQUE_ID" LIKE '%0000000000%' OR "TRACK_UNIQUE_ID" LIKE '%p6Cw0FmTuK%' OR "TRACK_UNIQUE_ID" LIKE '%Q8ZuEOnYlX%' OR "TRACK_UNIQUE_ID" LIKE '%64sbJ3Efqi%' OR "TRACK_UNIQUE_ID" LIKE '%KK82pGgvTO%' OR "TRACK_UNIQUE_ID" LIKE '%AxCDOQ87zs%' OR "TRACK_UNIQUE_ID" LIKE '%QEOa05IBHD%' OR "TRACK_UNIQUE_ID" LIKE '%1XB5ddFFCu%' OR "TRACK_UNIQUE_ID" LIKE '%0J46FUmYM0%' OR "TRACK_UNIQUE_ID" LIKE '%JVT1rdsbCb%' OR "TRACK_UNIQUE_ID" LIKE '%oZKZZau6FI%' OR "TRACK_UNIQUE_ID" LIKE '%dhRjg3G1N5%' OR "TRACK_UNIQUE_ID" LIKE '%e5g4YE8KkI%' OR "TRACK_UNIQUE_ID" LIKE '%epq1XNlYmy%' OR "TRACK_UNIQUE_ID" LIKE '%I3QUbYLMnG%' OR "TRACK_UNIQUE_ID" LIKE '%jnEtJHkM7i%' OR "TRACK_UNIQUE_ID" LIKE '%Dbxd3B9BFU%' OR "TRACK_UNIQUE_ID" LIKE '%yJUxiivTci%' OR "TRACK_UNIQUE_ID" LIKE '%hxnIjt1ta9%' OR "TRACK_UNIQUE_ID" LIKE '%6TeAUGsyts%' OR "TRACK_UNIQUE_ID" LIKE '%F7C1vp1ifg%' OR "TRACK_UNIQUE_ID" LIKE '%iYAqMYYZ6N%' OR "TRACK_UNIQUE_ID" LIKE '%LEaMLyVDTB%' OR "TRACK_UNIQUE_ID" LIKE '%2l0Al4m5Rm%' OR "TRACK_UNIQUE_ID" LIKE '%KmAPpW02Gf%' OR "TRACK_UNIQUE_ID" LIKE '%ArWZcTjvuW%' OR "TRACK_UNIQUE_ID" LIKE '%WH2KHsdwxA%' OR "TRACK_UNIQUE_ID" LIKE '%6g0fDiHyS4%' OR "TRACK_UNIQUE_ID" LIKE '%nBHpPhaI0c%' OR "TRACK_UNIQUE_ID" LIKE '%Zmo3nvj6qW%' OR "TRACK_UNIQUE_ID" LIKE '%vttTn2Rlcu%')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 20:04:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-query-breaks-with-proxy-setup/m-p/759200#M70270</guid>
      <dc:creator>melodiking</dc:creator>
      <dc:date>2014-11-17T20:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: definition query breaks with proxy setup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-query-breaks-with-proxy-setup/m-p/759201#M70271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bjorn, I am now working with Melo in this case. I can reproduce this issue &lt;A href="https://github.com/Esri/resource-proxy/issues/162" title="https://github.com/Esri/resource-proxy/issues/162"&gt;PHP: failed to send over long where statement · Issue #162 · Esri/resource-proxy · GitHub&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 20:08:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-query-breaks-with-proxy-setup/m-p/759201#M70271</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2014-11-17T20:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: definition query breaks with proxy setup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-query-breaks-with-proxy-setup/m-p/759202#M70272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There seems to be a few issues going on.&amp;nbsp; We think we've figured out a temporary work around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwin discovered that commenting out this line of code on his local server resolved the issue:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/resource-proxy/blob/master/PHP/proxy.php#L898" title="https://github.com/Esri/resource-proxy/blob/master/PHP/proxy.php#L898"&gt;resource-proxy/proxy.php at master · Esri/resource-proxy · GitHub&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a tester application on several machines, I found that his solution works on servers that have a newer version of curl.&amp;nbsp; Each of the machines passed each of the verification tests recommended in the proxy instructions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; text-decoration: underline;"&gt;LOCALHOST/tester&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;works: NO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;PHP: 5.3.5&lt;BR /&gt;curl: 7.21.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;A href="http://whalemapp.org/tester" style="color: #1155cc;" target="_blank"&gt;WHALEMAPP.ORG/tester&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;works: NO&lt;BR /&gt;PHP: 5.3.24&lt;BR /&gt;curl: 7.19.7&lt;BR /&gt;WORKS: no&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;A href="http://meloking.com/tester" style="color: #1155cc;" target="_blank"&gt;MELOKING.COM/tester&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;works: YES&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;curl: 7.24&lt;BR /&gt;PHP:5.3.10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN class="il" style="background: #ffffcc;"&gt;erwin&lt;/SPAN&gt;’s tester&lt;/SPAN&gt;&lt;BR /&gt;works: YES&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;PHP: 5.5.14&lt;BR /&gt;CURL: 7.37&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a great work around, assuming that my production server has the proper version of curl installed.&amp;nbsp; However, unfortunately, that does not seem to be the case for me as the production site is hosted via godaddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 13:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-query-breaks-with-proxy-setup/m-p/759202#M70272</guid>
      <dc:creator>melodiking</dc:creator>
      <dc:date>2014-11-20T13:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: definition query breaks with proxy setup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-query-breaks-with-proxy-setup/m-p/759203#M70273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've closed the case with Esri unresolved.&amp;nbsp; There is currently not a work around for lower versions of curl.&amp;nbsp; The issue has been reported to the proxy team and there is an open issue for it on Github.&amp;nbsp; Follow the repo if you want to stay informed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/resource-proxy" title="https://github.com/Esri/resource-proxy"&gt;Esri/resource-proxy · GitHub&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 15:19:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/definition-query-breaks-with-proxy-setup/m-p/759203#M70273</guid>
      <dc:creator>melodiking</dc:creator>
      <dc:date>2014-12-16T15:19:07Z</dc:date>
    </item>
  </channel>
</rss>

