node-rest-client icon indicating copy to clipboard operation
node-rest-client copied to clipboard

Support for retry

Open muditdixit7 opened this issue 6 years ago • 1 comments

Need support for request retry

muditdixit7 avatar Apr 03 '18 10:04 muditdixit7

Vote for this. Would like to have possibility or workarounds at least to retry all rate limit 429 responses, for example after 1 second, 2,4,8,...,64 seconds

We are using node-rest-client widely in our project. And if i'm trying to decorate get,post methods with polly-js it looks ugly and doeesn't really work. Especially with .on('error') methods

Is it possible to retry requests? Does anyone knows any workaround to do this without rework all parts that are using node-rest-client?

zxxc avatar Mar 20 '19 07:03 zxxc