How to use waitfor response method in servicenow rest call?

Manikantahere
Tera Contributor

I am seeing default servicenow http time out is 30 seconds can we increase based on integration?

 

WaitforResponse() can be used in both synchronous and asynchronous calls? is it can be used without turning off the property glide.http.outbound.max_timeout??

 

9 REPLIES 9

I am receiving a response even after 2 minutes when I make a synchronous call using response.execute()

 

Could you help me understand why this might be happening? and I don't see the property called glide.http.outbound.max_timeout in my dev.

@Manikantahere 

Thank you for marking my response as helpful.

you can create that property if not present and give value.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

However, when I tested it, I noticed that it is getting response up to 2 min beyond it is failing. Do you have any idea why this is happening?

@Manikantahere 

not very sure.

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

Bhimashankar H
Mega Sage

Hey @Manikantahere ,

 

I hope you saw my reply.


If my response points you in the right directions, please consider marking it as 'Helpful' & 'correct'. It will help future readers as well and it will help close the thread.

 

Thanks,
Bhimashankar H