Note to self: Internal Server Error may mean ill formed Ajax request

Ajax carrying the body of Achilles by Sebastià Giralt on flickr
Ajax carrying the body of Achilles by Sebastià Giralt on flickr

I’ve been battling away with JavaScript, jQuery, Ajax, and WCF in a project for several days now failing to see why my Ajax call repeatedly threw an “Internal Server Error” without any of the WCF server code running. It turns out that I’d forgotten to put quotes in the JSON data field around the string I was passing in, I had them around the argument names, but not the string values.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: