Hi,
I've been using the online service from Esri to perform the Vehicle Routing Problem:
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.
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.
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?
Thanks
Anthony
The request is probably longer than 2048 characters. Have you had a look at using a proxy page? - Using the proxy | Guide | ArcGIS API for JavaScript
Are you doing this query from a web application you've built?
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 (https://logistics.arcgis.com)into the proxy config.