Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to set a time limit on the HttpClient.send in JavaScript in Apigee Edge

Hi Apigee Community!

Is there a way to setup a time limit of 50s to the httpClient.send and then when it reach the time limit, the process will exit the js policy and continue without error? (the goal of this is to exit the JS policy before the message processor timeout)


setTimeout and setInterval method are not supported by the JS in Apigee Edge, and waitforComplete is not good to use. Any suggestion on how to do that?

1 7 1,010
7 REPLIES 7