
Since retry.statusCodes and retry.errorCodes option support is implemented as part of the default retries function, those options are incompatible with custom retry function. Moreover even default statusCodes become not working so you get retries for HTTP 401, for example.
This is not quite obvious and documentation says nothing about that.
I think this is a bug to be fixed or at least it should be stated in readme.
IssueHunt Summary
szmarczak has been rewarded.
Backers (Total: $60.00)
Submitted pull Requests
Tips
IssueHunt has been backed by the following sponsors. Become a sponsor
Since
retry.statusCodesandretry.errorCodesoption support is implemented as part of the defaultretriesfunction, those options are incompatible with custom retry function. Moreover even defaultstatusCodesbecome not working so you get retries for HTTP 401, for example.This is not quite obvious and documentation says nothing about that.
I think this is a bug to be fixed or at least it should be stated in readme.
IssueHunt Summary
Backers (Total: $60.00)
Submitted pull Requests
Tips
IssueHunt has been backed by the following sponsors. Become a sponsor