getting 500 internal server error use webservice to approve package

Document ID : KB000100673
Last Modified Date : 08/06/2018
Show Technical Document Details
Trying to use Endevor webservice to approve package and getting this error: 
HTTP Status 500 - org.glassfish.jersey.server.ContainerException: com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input

How to fix it ? 


This is related to bug in our API for Approve/Deny requests with Notes. The problem is that API it always expect the JSON. If you send an empty body, it will fail.
The workaround is to add an empty JSON into your request body, which looks like this: {} ,  or to remove the Content-type: application/json header and it will use the former Approve/Deny requests, which doesn't support Notes.