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

Hi

Check for allowing firewall for chrome.

Sorry for delayed response. I will do it. Thank you

 

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

Hi Harsh,

Do you have any Rest Message example code, where are you getting http status 204 ?

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.

 

find_real_file.png