java.net.UnknownHostException: datacentertest.service-now.com: Temporary failure in name resolution

Gajendra Singh1
ServiceNow Employee
ServiceNow Employee

We're getting 'java.net.UnknownHostException: datacentertest.service-now.com: Temporary failure in name resolution' error intermittently while making the GET REST API call to datacentertest via Jenkins.

 

Also, sometimes we're getting 'java.net.ConnectException: Connection timed out (Connection timed out)' for the same API calls.

 

What could be the issue here?

1 REPLY 1

Carlos Gomez18
Tera Contributor

Hello good afternoon. we have a similar issue.

i have this BR running async:

(function executeRule(current, previous /*null when async*/) {
var request =new sn_ws.RESTMessageV2();
request.setEndpoint('ms-manage-files-mx-refis-dev.apps.str01.mex.dev.mx1.paas.cloudcenter.corp/managefiles/constancia');
request.setHttpMethod('POST');
request.setRequestHeader('Accept','*/*');
request.setRequestHeader('Content-Type',' multipart/form-data');
request.setRequestBody("{TipoConstancia:\"prueba\",TipoOperacion:\"prueba\",TipoEjecucion:\"prueba\",ValorDeRetorno:\"prueba\"}");
var response=request.execute();
gs.log(request.getRequestBody(),'rest test');

gs.log(response.getStatusCode(),'rest test');
gs.log(response.getErrorMessage(),'rest test');
gs.log(response.getErrorCode(),'rest test');
})(current, previous);

 

i have a vpn conection try this endpoint on the app postman and gives me the correct JSON answer but when i run on servicenow giveme that message:

 

Request not sent to uri= https://ms-manage-files-mx-refis-dev.apps.str01.mex.dev.mx1.paas.cloudcenter.corp/managefiles/consta... : java.net.UnknownHostException: ms-manage-files-mx-refis-dev.apps.str01.mex.dev.mx1.paas.cloudcenter.corp