Maximum timeout of REST request when using setHttpTimeout

Chau Vo
Tera Contributor

Hi everyone. I have some questions about RESTMessageV2 - setHttpTimeout. 

What is the default value of the request timeout if I don't use setHttpTimeout?

What is the maximum value does setHttpTimeout take?

5 REPLIES 5

Amit Verma
Kilo Patron
Kilo Patron

Hi @Chau Vo 

 

Please refer below post. As per the Hi Support team, http connection timeouts are being controlled by glide.http.outbound.max_timeout system property.It Specifies the number of seconds that RESTMessageV2 and SOAPMessageV2 APIs wait for a response from a synchronous call. The maximum value is 30 second.

 

https://www.servicenow.com/community/developer-forum/how-to-increase-the-timeout-for-a-rest-response...

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.