WaitForResponse method does not reflect set value

yui ozo
Tera Contributor

Hello.

I am using the waitForResponse method of RESTMessageV2 to set the time until timeout to wait for a REST API response.

waitForResponse(120);

the timeout seems to occur in 60 seconds.

Please let me know if there is any other possible cause.

 

Configuration of sys_properties

glide.http.outbound.max_timeout.enabled is falseuse.

I have not set glide.rest.outbound.ecc_response.timeout.

 

Please help me with this.

Translated with www.DeepL.com/Translator (free version)

2件の返信2

Kieran Anson
Kilo Patron

waiting for a response for that long is not advisable as you will be holding onto a worker for 2 minutes which will negatively impact your servicenow instance. This should be moved to an aysnc REST call

Thank you Kieran, I will try to get the information from you.

I will consider implementing this in aysnc REST.