node-request-retry icon indicating copy to clipboard operation
node-request-retry copied to clipboard

:guardsman: Wrap NodeJS request module to retry http requests in case of errors

Results 10 node-request-retry issues
Sort by recently updated
recently updated
newest added

I was wondering if it was possible for the module to keep a persistent connection open to a server to make multiple API requests. Also, if the persistent connection dies,...

enhancement

Request has a .form() function that can be called for multipart form data, documented: ``` https://github.com/request/request#forms ``` There are other ways to submit mulitpart forms (e.g. using the formData parameter)...

enhancement

I have: ``` return new Promise(resolve => { request(options) .pipe(fs.createWriteStream(fileName)) .on("finish", function () { console.log("The file should be completely written here"); resolve(fileName); }); }); ``` and I expected the `finish`...

enhancement

If the function for retryStrategy is an async function the request will continue to retry even when the request has been successfully executed. I'm trying to update the proxy settings...

enhancement

request from defaults() method ignores options argument in some cases. ```javascript var request = require('requestretry').defaults({ headers: { 'User-Agent': 'default UA' } }); // OK request('https://github.com/', function (err, response, body) {...

enhancement

Is there any way to implement a custom `retryStrategy` which needs to be asynchronous? Let's say, for example, my `mustRetry` option depends on some value that I have to query...

enhancement

Following the custom retry strategy example below (from the readme): ```js /** * @param {Null | Object} err * @param {Object} response * @param {Object} body * @param {Object} options...

enhancement

Rather than proxy 'then', 'catch', 'finally', 'fail', and 'done' to the underlying promise returned by promiseFactory, it would be nice if the whole api of the promise was exposed. For...

enhancement

Hello, i just tried replacing the require('request') with requestretry but looks like there is no support for `request.jar`. Also i wounder if the request `options.jar` is supported. Thanks. --- Want...

enhancement

I wanted to try using this module instead of [request](https://www.npmjs.com/package/request) because it would handle ESOCKETTIMEDOUT (and more) errors for me. However, there is a big issue when it comes to...

enhancement