I've been banging away at this problem most of the day and I'm just stumped.
I have a .NET webservice that returns a JSON serialized response and am trying to switch it out with a new one that has access to more data to serialize. Both of the services look identical as far as their logic for handling requests. both set the ContentType to application/json and write to the stream.
I'm using jQuery 1.7.1 On the client side, I send the getJSON off with the URL to the working endpoint. Firebug shows the result coming back, full of data and it validates out in JSONLint and others. I set up a .ajaxSetup() to catch the onError event and I get this:
textStatus: parsererror
Error Thrown: Error: jQuery17109478366139694514_1337880510219 was not called
jqXHR Response Text: undefined
(i formatted the message)
The JSON I'm looking at is a bunch of this:
[
{
"sourceType": "KML",
"dataUrl": "http://firefly.geog.umd.edu/kml/download.php?file=kml_global_modis-hotspots.kml",
"id": "https://example.com/KmlFeeds::KMLFeeds::FIRMS::World",
"title": "FIRMS - World",
"description": "MODIS hotspot / fire and burned area",
"originator": "NASA LANCE",
"spatialDomain": null
},
{
"sourceType": "KML",
"dataUrl": "http://firefly.geog.umd.edu/kml/download.php?file=Alaska_24h.kml",
"id": "https://example.com/KmlFeeds::KMLFeeds::FIRMS::Alaska",
"title": "FIRMS - Alaska",
"description": "MODIS hotspot / fire and burned area",
"originator": "NASA LANCE",
"spatialDomain": null
},
...
]
(spatialDomain sometimes has bounding box coordinates, just comma separated decimals in a string)
My old web service returns the same with a couple of the keys differently labeled. Using the new service I never get to the callback which posts all of this data to the site. It's definitely coming back to me and looks valid anyway I look at it.
I want to think there is something off with the new service - if I just switch the request URL back to the old one my client works just fine. However the response is coming back as valid JSON so I can't figure out how it's having issues just getting into the success callback. Thoughts?