2012-09-22, 02:00
(2012-05-15, 14:35)Montellese Wrote:(2012-05-15, 14:10)dwagner Wrote: I'm having issues with the nightly builds (currently I am using the 12 May nightly build). I use Simple REST Client to do JSON testing in chrome, and it keeps giving me:
415 Unsupported Media Type
If I go back to the stable release of XBMC Eden, everything works fine.
Please always first take a look at this thread http://forum.xbmc.org/showthread.php?tid=98551 before you start using JSON-RPC with nightly builds. It will give you an overview of what has changed and in this case it will also give you the answer to your problem:
(2012-03-25, 13:51)Montellese Wrote: Tuesday, March 27th 2012:
Commit: adff92756087a50bb116
I just pushed a major refactor of how the webserver works internally. Currently this has only one effect on how it works and that affects JSON-RPC clients using JSON-RPC over HTTP. You need to make sure you set the Content-Type in the HTTP header to "application/json" and not something like "multipart/form-data" because that is plain wrong. The new implementation has the functionality to parse POST data for certain content-types (including application/json, multipart/form-data and application/x-www-form-urlencoded) and will therefore fail if the content-type does not match the actual POST data.
Hi Montellese,
I too am having this issue where I get 415 Unsupported Media Type
However, the Content-Type is set to application/json-rpc
I am using jsonrpclib (python) by jmarshall, and the Content-Type seems to be hardcoded into the egg.
So my question here is; is it possible to add application/json-rpc to the list?
I have installed Eden Stable, and functionality still works there,
so it's just a matter of recognizing application/json-rpc as json aswell.
Kind regards,
Skindred