Select to view content in your preferred language

QueryTask times out

1360
4
07-12-2011 01:45 PM
PerryDonnafield
Emerging Contributor
Trying to execute a querytask against my service using the following code:

var queryTask = new esri.tasks.QueryTask(queryUrl);
  var query = new esri.tasks.Query();
  query.returnGeometry = false;
  query.where = "CITY_ID > 0";
  query.outFields = ["NAME"];

  queryTask.execute(query, cadastral.tools.showCities, cadastral.tools.showError);


As soon as I call execute I get a "n is null" error on line 14 of the arcgis api script. Then after a minute or so I get a "timeout exceeded" on my error callback.

Any ideas? Thanks.
0 Kudos
4 Replies
PerryDonnafield
Emerging Contributor
The request header looks like this in Fiddler which seems fine to me:
GET /ArcGIS/rest/services/BaseMapServiceCenter/cadastral_WebMercator/MapServer/2/query?f=json&where=CITY_ID%20%3E%200&returnGeometry=false&spatialRel=esriSpatialRelIntersects&outFields=NAME&callback=dojo.io.script.jsonp_dojoIoScript7._jsonpCallback HTTP/1.1
0 Kudos
PerryDonnafield
Emerging Contributor
i can see in firebug that n is null. what the heck is n?
0 Kudos
PerryDonnafield
Emerging Contributor
Ok just tried this in IE9. Works flawless. What is Firefox expecting? Anyone know?
0 Kudos
PerryDonnafield
Emerging Contributor
ok, so this also works when firebug is turned off. so, not that big of a deal.
0 Kudos