Getting error : com.glide.communications.ProcessingException: Error executing REST request: null

Vivek Verma
Mega Sage
Mega Sage

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');
 } 
		
	},     
	
1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

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.

 

204SuccessSuccess with no response body.

 

 

Status Code Details

View solution in original post

12 REPLIES 12

Omkar Mone
Mega Sage

Hi 

This maybe the problem with your firewall. Check once.

Thanks.

 

Would you please elaborate more for me.

Thank you for the quick response.

But I am using Chrome.