AnsweredAssumed Answered

maxAllowableOffset in the REST API is returning wrong responses when called consecutively milliseconds apart

Question asked by vish on Aug 14, 2015

Hi all,

 

We are using the query operation on a MapService with the maxAllowableOffset. There are multiple queries made and they are happen really fast. Chrome tells me that they are 1ms apart. In this case, response is wrong. Sometimes we get the same geometry back, sometimes we get the previous operation's geometry back etc. When we introduce a 50ms delay between the ajax calls in javascript, the responses are correct. This looks like a bug due to some global state shared across requests. This thread from 3.5 years ago also seems to be indicating something similar. IdentifyTask, QueryTask and MaxAllowableOffset - after setting it does not get reset

 

Thank You,

Vish

Outcomes