getting 500 internal server error use webservice to approve package
search cancel

getting 500 internal server error use webservice to approve package

book

Article ID: 100673

calendar_today

Updated On:

Products

Endevor Endevor Natural Integration Endevor - ECLIPSE Plugin Endevor - Enterprise Workbench

Issue/Introduction



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 ? 

 

Environment

Release: ENDAE.00200-18.0-Endevor-Software Change Manager
Component:

Resolution

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.