Changed the content type to application/json without any errors occurring.