Select to view content in your preferred language

NetworkError 400 - but it used to work...

874
2
11-19-2012 01:13 PM
AllisonAnderson
Occasional Contributor
My web app was happily working until the last week or so and now I'm getting a NetworkError 400: Bad Request.  I'm not sure how to troubleshoot this.  Has anyone run into this? 

url is http://wagda.lib.washington.edu/Aerials/AerialsViewer.html

For the most part everything works, but if I click on the Townships button, the layer won't display and Firebug gives me the 400 error.  The layer is available via REST in ArcMap. 

Stumped on this one.
0 Kudos
2 Replies
derekswingley1
Deactivated User
referenceLayerUrl defined on line 104 in index.html points to a layer in the map service, but should be pointing to the root of the map service.

Change this:
var referenceLayerUrl = "http://wagda.lib.washington.edu/rest/services/Townships/MapServer/0";


To this:
var referenceLayerUrl = "http://wagda.lib.washington.edu/rest/services/Townships/MapServer";
0 Kudos
AllisonAnderson
Occasional Contributor
Gah.  Overlooked that as I was reorganizing services.  😮

Thanks Derek.
0 Kudos