Custom retry.retries
function unexpectedly breaks statusCode
and other conditional retries
#753
Labels
enhancement
This change will extend Got features
🎁 Rewarded on Issuehunt
This issue has been rewarded on Issuehunt
good for beginner
This issue is easy to fix
Milestone
Since
retry.statusCodes
andretry.errorCodes
option support is implemented as part of the defaultretries
function, those options are incompatible with custom retry function. Moreover even defaultstatusCodes
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
The text was updated successfully, but these errors were encountered: