<?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: Large JSON query causing Bad Request 400 in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/large-json-query-causing-bad-request-400/m-p/301577#M1484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The request is probably longer than 2048 characters. Have you had a look at using a proxy page? - &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;Are you doing this query from a web application you've built? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll need to host the proxy on the same web server as your application and add in the web server you are going to (&lt;A class="jive-link-external-small" href="https://logistics.arcgis.com/arcgis/rest/services/World/VehicleRoutingProblem/GPServer/SolveVehicleRoutingProblem/submitJob?parameters" rel="nofollow" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;" target="_blank"&gt;https://logistics.arcgis.com)&lt;/A&gt;into the proxy config.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2014 09:19:46 GMT</pubDate>
    <dc:creator>ShaunWeston1</dc:creator>
    <dc:date>2014-09-25T09:19:46Z</dc:date>
    <item>
      <title>Large JSON query causing Bad Request 400</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/large-json-query-causing-bad-request-400/m-p/301576#M1483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been using the online service from Esri to perform the Vehicle Routing Problem:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="usertext"&gt;&lt;A class="jive-link-external-small" href="https://logistics.arcgis.com/arcgis/rest/services/World/VehicleRoutingProblem/GPServer/SolveVehicleRoutingProblem/submitJob?parameters" rel="nofollow" target="_blank"&gt;https://logistics.arcgis.com/arcgis/rest/services/World/VehicleRoutingProblem/GPServer/SolveVehicleRoutingProblem/submitJob?parameters&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="usertext"&gt;&lt;/SPAN&gt;&lt;SPAN class="usertext"&gt;This works fine until I start passing a large number of stops. 70 seems ok but 140 tips it over the edge and gives me a Error 400 Bad Request. I thought I may have a syntax error somewhere so I tried sending the first and last 70 stops separately and it all worked fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="usertext"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="usertext"&gt;I have a feeling that the Esri service is capping the JSON Url that I'm passing it, so I tried using POST instead of GET but all I get back is an Error 403 Forbidden response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="usertext"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="usertext"&gt;Other than writing the request to a public web server and sending the Url to the Esri service, how can I get a large JSON query to work with the online service?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 00:48:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/large-json-query-causing-bad-request-400/m-p/301576#M1483</guid>
      <dc:creator>AnthonyBott</dc:creator>
      <dc:date>2014-09-18T00:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Large JSON query causing Bad Request 400</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/large-json-query-causing-bad-request-400/m-p/301577#M1484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The request is probably longer than 2048 characters. Have you had a look at using a proxy page? - &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;Are you doing this query from a web application you've built? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll need to host the proxy on the same web server as your application and add in the web server you are going to (&lt;A class="jive-link-external-small" href="https://logistics.arcgis.com/arcgis/rest/services/World/VehicleRoutingProblem/GPServer/SolveVehicleRoutingProblem/submitJob?parameters" rel="nofollow" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;" target="_blank"&gt;https://logistics.arcgis.com)&lt;/A&gt;into the proxy config.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 09:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/large-json-query-causing-bad-request-400/m-p/301577#M1484</guid>
      <dc:creator>ShaunWeston1</dc:creator>
      <dc:date>2014-09-25T09:19:46Z</dc:date>
    </item>
  </channel>
</rss>

