You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the custom retry strategy example below (from the readme):
/** * @param {Null | Object} err * @param {Object} response * @param {Object} body * @param {Object} options copy * @return {Boolean} true if the request should be retried */functionmyRetryStrategy(err,response,body,options){// retry the request if we had an error or if the response was a 'Bad Gateway'returnerr||response.statusCode===502;}
When err is an object and this function returns that object, mustRetry becomes undefined bypassing the desired retry attempt based on the logic here because mustRetry.mustRetry is not a thing in this scenario:
Following the custom retry strategy example below (from the readme):
When
err
is an object and this function returns that object,mustRetry
becomesundefined
bypassing the desired retry attempt based on the logic here becausemustRetry.mustRetry
is not a thing in this scenario:node-request-retry/index.js
Lines 133 to 146 in e72edee
The text was updated successfully, but these errors were encountered: