- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2018 12:56 AM
Hi all,
I am stuck in one of the my Delete method Rest message execution.
That rest message gave us the error: com.glide.communications.ProcessingException: Error executing REST request: null
Though in my integration process Catalog item gets deleted on the other side but in response I am getting any httpstatus code.
actually request.execute() is not working. And in Log I am getting the above error.
callEOSPostRequestAWSDeleteVM: function(VmId)
{
try
{
var returnedArray;
//gs.log("Payload in Script include is "+payload);
token = this.callEOSAWSAuthenticationToken();
gs.info("Token in EOSPostRequestAWSPOSTRequest is"+token);
var request = new sn_ws.RESTMessageV2('EOSPostRequest_AWS_Terminate', 'Delete VM');
request.setRequestHeader("cookie",token);
request.setHttpTimeout(1000*60*5); //Setting timeout to be maximum of 5 minutes.
request.setStringParameter('vm_id',VmId);
request.setStringParameter('subid',sub_id);
request.setStringParameter("rest_endpoint",rest_endpoint);
request.setStringParameter("version",version);
gs.log("vmid in Delete"+VmId);
var response = request.execute();
gs.log("vmid in Delete after ==>>>"+VmId);
gs.log("vmid in Delete response ==>> "+response);
var httpStatus = response.getStatusCode();
gs.log("httpStatus====>" +httpStatus,"EOS_httpStatus");
var responseBody = response.getBody();
gs.log("Response getBody====>" +responseBody,"EOS_responseBody");
//gs.log("Final Response in aws delete is====>>>"+responseBody);
//gs.log("Final Post aws delete request status==>"+httpStatus);
if(httpStatus.toString()=='204')
{
//return httpStatus;
}
catch(ex)
{
var message = ex.getMessage();
gs.log(message,'EOS_message');
gs.log(ex,'EOS_message');
}
},
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2018 10:07 PM
kindly do the test by using REST Message and mention the mid server. then check the status. if you will get the status 204 then in response you will get blank response body.
204 | Success | Success with no response body. |

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2018 02:09 AM
Hi
Check for allowing firewall for chrome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2018 08:45 PM
Sorry for delayed response. I will do it. Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2018 10:07 PM
kindly do the test by using REST Message and mention the mid server. then check the status. if you will get the status 204 then in response you will get blank response body.
204 | Success | Success with no response body. |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2018 12:18 AM
Hi Harsh,
Do you have any Rest Message example code, where are you getting http status 204 ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2018 03:10 AM
try { var r = new sn_ws.RESTMessageV2('demo', 'Default Delete'); r.setStringParameterNoEscape('Id', '1effa3a5db2ea340e4d95740cf961902'); //override authentication profile //authentication type ='basic'/ 'oauth2' //r.setAuthentication(authentication type, profile name); var response = r.execute(); var responseBody = response.getBody(); var httpStatus = response.getStatusCode(); } catch(ex) { var message = ex.getMessage(); }
i tired with other instance. and it worked. if you see the status is giving "204" but in response it's blank.