node-request-retry
node-request-retry copied to clipboard
:guardsman: Wrap NodeJS request module to retry http requests in case of errors
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,...
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)...
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`...
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...
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) {...
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...
Following the custom retry strategy example below (from the readme): ```js /** * @param {Null | Object} err * @param {Object} response * @param {Object} body * @param {Object} options...
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...
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...
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...