<?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: URGENT HELP NEEDED!!! Error code 400 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651569#M60783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You may have encountered a bug in ArcGIS Server 10.1 SP1:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/73456-new-problem-REST-query-10.1-every-other-request-fails-(400-unable-to-complete-oper)?p=256794&amp;amp;viewfull=1#post256794"&gt;http://forums.arcgis.com/threads/73456-new-problem-REST-query-10.1-every-other-request-fails-(400-unable-to-complete-oper)?p=256794&amp;amp;viewfull=1#post256794&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I figured there was a small piece of code missing in my init function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;esriConfig.defaults.io.alwaysUseProxy = true;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Once I placed this code, the site started working normally on my local install with no problems, so far (I'll keep my fingers crossed).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;However, I now have to host it on amazon EC2 and I am not sure what should be the proxyURL on EC2. My path to the file on EC2 is&amp;nbsp; "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;ElasticIPAddress&amp;gt;/ArcGIS_proxy/proxy.jsp. I have tried a few options but those didn't work. I am using a web adaptor for this instance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll post this question on the appropriate forum as well, but wanted to follow up on my question on this forum. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Samir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Apr 2013 14:00:38 GMT</pubDate>
    <dc:creator>SamirGambhir</dc:creator>
    <dc:date>2013-04-05T14:00:38Z</dc:date>
    <item>
      <title>URGENT HELP NEEDED!!! Error code 400</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651562#M60776</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;SPAN&gt;I have been working on this web application for sometime and I have a big presentation coming up next Wednesday. Unfortunately, starting last week, something has gone wrong with the application and I cannot fix it. The issue is that when my application loads, the console log shows "Error {code: 400, message: "Unable to complete operation.", details: Array[0], log: undefined, _ssl: undefined}. Suspecting something wrong with my code, I have checked my code umpteenth number of times. I also recreated my services and checked through REST as well. Eventually I created a basic bare bones application and tried it with ESRI's SampleWorldCities service, and I still get the same message. I suspect there is something going on with serverapi.arcgisonline.com. if not, then can someone help me resolve this issue. I have spent two days trying to resolve this and cannot progress on completing my application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll really appreciate any help. PLEASE HELP!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Samir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 19:17:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651562#M60776</guid>
      <dc:creator>SamirGambhir</dc:creator>
      <dc:date>2013-04-03T19:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP NEEDED!!! Error code 400</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651563#M60777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you post your code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using both http and https requests?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 19:51:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651563#M60777</guid>
      <dc:creator>ShadCampbell</dc:creator>
      <dc:date>2013-04-03T19:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP NEEDED!!! Error code 400</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651564#M60778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you post your code?&lt;BR /&gt;Are you using both http and https requests?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Shad, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for offering to help. Please find the html file with a very basic application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using http requests only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Samir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 12:56:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651564#M60778</guid>
      <dc:creator>SamirGambhir</dc:creator>
      <dc:date>2013-04-04T12:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP NEEDED!!! Error code 400</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651565#M60779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Samir,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It does not appear to be anything with the JSAPI... This seems to work fine: &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/shadc/WD6ta/"&gt;http://jsfiddle.net/shadc/WD6ta/&lt;/A&gt;&lt;SPAN&gt;&lt;SPAN&gt; .&amp;nbsp; All I did is point to another SampleWorldCities service??&amp;nbsp; Your service or proxy is suspect... ("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;/SPAN&gt;&lt;STRONG&gt;localhost:6080&lt;/STRONG&gt;&lt;SPAN&gt;/arcgis/rest/services/SampleWorldCities/MapServer/0")&amp;nbsp; Are you running everything from localhost?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Shad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 17:10:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651565#M60779</guid>
      <dc:creator>ShadCampbell</dc:creator>
      <dc:date>2013-04-04T17:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP NEEDED!!! Error code 400</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651566#M60780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Samir,&lt;BR /&gt;It does not appear to be anything with the JSAPI... This seems to work fine: &lt;A href="http://jsfiddle.net/shadc/WD6ta/"&gt;http://jsfiddle.net/shadc/WD6ta/&lt;/A&gt; .&amp;nbsp; All I did is point to another SampleWorldCities service??&amp;nbsp; Your service or proxy is suspect... ("http://&lt;STRONG&gt;localhost:6080&lt;/STRONG&gt;/arcgis/rest/services/SampleWorldCities/MapServer/0")&amp;nbsp; Are you running everything from localhost?&lt;BR /&gt;&lt;BR /&gt;-Shad&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Shad,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for looking into it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran the code on JSFiddle (your link) and the behavior is the same. It runs fine the first time, but if you run it again, the combobox does not get populated. Did you encounter the same behavior?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Samir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 18:48:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651566#M60780</guid>
      <dc:creator>SamirGambhir</dc:creator>
      <dc:date>2013-04-04T18:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP NEEDED!!! Error code 400</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651567#M60781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;While I don't have a solution, I might be able to lead you in the right direction...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I stripped your code down to the bare minimum to test simple queries and found the same as you did... that every other request results in a 400 error.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As simple Google search found me the REST endpoints for several SampleWorldCities services.&amp;nbsp;&amp;nbsp; So I tried a bunch of them and found that most of them failed... but one worked.&amp;nbsp; The ones on version 10.11 failed, but the one on 10.1 worked! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try for yourself...&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/shadc/4VZeQ/"&gt;http://jsfiddle.net/shadc/4VZeQ/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then went directly to ArcGIS Server and hand entered the queries... and found the same results with THAT (ie SampleWorldCities) service, but only with a get request... the post worked every time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer/0/query"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer/0/query&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Where: CITY_NAME = 'New York'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--FAILS ON EVERY OTHER QUERY (with get only)--&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact, I tested all the layers in the service and they all fail on every other get request.&amp;nbsp; I then tested several other MapServer services on that server that appeared similar to the SampleWorldCities service and did not have any issues with multiple requests with either the get or post. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bottom line... it appears to be an issue with this server version and this service.&amp;nbsp; Perhaps just find another source for the data?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps this will help with tech support. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 22:49:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651567#M60781</guid>
      <dc:creator>ShadCampbell</dc:creator>
      <dc:date>2013-04-04T22:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP NEEDED!!! Error code 400</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651568#M60782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I tested all the layers in the service and they all fail on every other get request&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may have encountered a bug in ArcGIS Server 10.1 SP1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/73456-new-problem-REST-query-10.1-every-other-request-fails-(400-unable-to-complete-oper)?p=256794&amp;amp;viewfull=1#post256794"&gt;http://forums.arcgis.com/threads/73456-new-problem-REST-query-10.1-every-other-request-fails-(400-unable-to-complete-oper)?p=256794&amp;amp;viewfull=1#post256794&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;SPAN style="color:#333333;"&gt;This is a known issues with 10.1 SP1, and has been logged as the following bug:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:#333333;"&gt;[ NIM086349 - Alternate Query (Get) requests fail in Version 10.1 SP1 ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:#333333;"&gt;I don't know when this is scheduled to be fixed, but if you contact Support you can be attached to the bug. You can also check the status here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/bugs/nimbus/role/beta10_1/TklNMDg2MzQ5"&gt;http://support.esri.com/en/bugs/nimb...1/TklNMDg2MzQ5&lt;BR /&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 23:56:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651568#M60782</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2013-04-04T23:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP NEEDED!!! Error code 400</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651569#M60783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You may have encountered a bug in ArcGIS Server 10.1 SP1:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/73456-new-problem-REST-query-10.1-every-other-request-fails-(400-unable-to-complete-oper)?p=256794&amp;amp;viewfull=1#post256794"&gt;http://forums.arcgis.com/threads/73456-new-problem-REST-query-10.1-every-other-request-fails-(400-unable-to-complete-oper)?p=256794&amp;amp;viewfull=1#post256794&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I figured there was a small piece of code missing in my init function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;esriConfig.defaults.io.alwaysUseProxy = true;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Once I placed this code, the site started working normally on my local install with no problems, so far (I'll keep my fingers crossed).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;However, I now have to host it on amazon EC2 and I am not sure what should be the proxyURL on EC2. My path to the file on EC2 is&amp;nbsp; "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;ElasticIPAddress&amp;gt;/ArcGIS_proxy/proxy.jsp. I have tried a few options but those didn't work. I am using a web adaptor for this instance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll post this question on the appropriate forum as well, but wanted to follow up on my question on this forum. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Samir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 14:00:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urgent-help-needed-error-code-400/m-p/651569#M60783</guid>
      <dc:creator>SamirGambhir</dc:creator>
      <dc:date>2013-04-05T14:00:38Z</dc:date>
    </item>
  </channel>
</rss>

