REST timeout

Ravish Shetty
Tera Guru

Hi all,

 

I see timeout errors when connecting to a REST API and not sure what's going on.

 

We are trying to connect to Oracle Enterprise Managers REST API from ServiceNow. When I use the Postman client from my laptop, it works fine but I had to connect to my corporate VPN and use a self-signed certificate for the same. Below is the output from Postman.

find_real_file.png

When I try to connect from ServiceNow, it times out and here is the error in the ECC Queue

 

find_real_file.png

 

Below is the REST code that I am executing.

 

find_real_file.png

 

Below property is enabled in our ServiceNow instance

find_real_file.png

 

Thanks,

Ravish

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

You might have to increase the property

refer below links for more help

Outbound REST Web Services RESTMessageV2 and SOAPMessageV2 execute() vs executeAsync() Best Practice...

glide.rest.outbound.ecc_response.timeout system property use?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

try setting higher value to this property

  • Property: glide.http.outbound.max_timeout
  • Description: Specifies the number of seconds that RESTMessageV2 and SOAPMessageV2 APIs wait for a response from a synchronous call. The maximum value is 30 seconds.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

thanks Ankur. So far i tried both and it did not work. it seems to be related to be a self signed certificate issue as the postman tool also seems to be asking for it before processing. i need to add one to the MID server. would you know what is the correct documentation for the same

 

is it https://docs.servicenow.com/bundle/paris-servicenow-platform/page/product/mid-server/task/add-ssl-certificates.html

or https://docs.servicenow.com/bundle/paris-platform-administration/page/administer/general/task/t_UploadACertificateToAnInstance.html