AnsweredAssumed Answered

definition query breaks with proxy setup

Question asked by melodiking on Oct 29, 2014
Latest reply on Dec 16, 2014 by melodiking

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.

 

Proxy page was setup according to instructions enclosed in the Esri proxy github folder (see: Esri/resource-proxy · GitHub ).

 

Feature layers load fine using proxy with multiple projects.

 

When query string is short, proxy send a GET request. No problem.

 

When query is longer than 2048 characters, proxy sends a POST request.

 

This makes sense.  My understanding is that one of the benefits of setting up a proxy page is so that you can send longer requests (see: Using the proxy | Guide | ArcGIS API for JavaScript )

 

I get the following error in my console:

"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...."

Outcomes