I have an ODataController which seems to work fine if I just do a GET through my browser. But when I use JayData to read I get a 500 back. I can see GetItems() being called in my ODataController and it returns a valid list of Items. I but I am seeing a handful of ODataContentTypeException exceptions being thrown which have the follwing message:
Additional information: A supported MIME type could not be found that matches the content type of the response. None of the supported type(s) 'application/atom+xml;type=feed, application/atom+xml, application/json;odata=verbose, application/json' matches the content type 'application/json; odata=fullmetadata; charset=utf-8'.
Then
Additional information: A supported MIME type could not be found that matches the content type of the response. None of the supported type(s) 'application/atom+xml;type=feed, application/atom+xml, application/json;odata=verbose, application/json' matches the content type 'application/json; odata=fullmetadata; charset=utf-8'.
Then
Additional information: A supported MIME type could not be found that matches the content type of the response. None of the supported type(s) 'application/xml, application/json;odata=verbose, application/json' matches the content type 'application/json; odata=fullmetadata; charset=utf-8'.
And lastly
Additional information: A supported MIME type could not be found that matches the content type of the response. None of the supported type(s) 'application/xml, application/json;odata=verbose, application/json' matches the content type 'application/json; odata=fullmetadata; charset=utf-8'.
I am assuming these are the cause of the 500 I am getting back, but there doesnt' seem to be a way to be sure. According to Chrome, the request being sent is requesting the following:
Accept:application/atomsvc+xml;q=0.8, application/json;odata=fullmetadata;q=0.7, application/json;q=0.5, /;q=0.1
Accept-Encoding:gzip,deflate,sdch
An empty response with a 500 error is all that is received back. Anyone else having this trouble?
Accept-Language:en-US,en;q=0.8,en-CA;q=0.6