1) Give a description of the problem
I have a WebCoRE Piston that makes a web request using POST and passes some JSON to the web server. The web server processes the POST request correctly and does what I expect. However, because the server returns no reponse content, it seems that WebCoRE treats this as an exception (“Error executing external web request: java.lang.IllegalArgumentException: Response does not contain data”). When I make the same call using postman eveything works, but the status shows “204 No Content”. I have no control over the API on the server as it’s a 3rd party. Is there anyway to supress this exception? Isn’t it a legitimate scenario that an http POST is made without expecting any data to be returned? Please note that the server also insists the web call is made using POST, so I can’t (for example) use a PUT or anything instead.
2) What is the expected behaviour?
I expect the web request to execute, the web server to not return any data and for WebCoRE to handle the lack of response content without throwing an exception.
3) What is happening/not happening?
WebCoRE thows exception “Error executing external web request: java.lang.IllegalArgumentException: Response does not contain data”
4) Post a Green Snapshot of the piston!
5) Attach logs after turning logging level to Full