QueryTask times out

Discussion created by perryd on Jul 12, 2011
Latest reply on Jul 12, 2011 by perryd
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"];


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.