Open Inrixia opened 1 year ago
The limit variable also does not apply at all!
I have the same issue. My retry config: const retry = { retries: RETRY_ATTEMTS, calculateDelay: () => RETRY_DELAY, statusCodes: [102], errorCodes: ['ECONNRESET'], methods: ['POST'], }
I still get retries on 500 errors for example. Got version: 11.8.6 Node version: 18.12.1
The only fix for this so far is to check the status code in the function itself and return nothing (which does not retry) if it's not a code you want.
That's not to say this shouldn't be fixed though.
If you omit the calculateDelay in the retry config, the statusCodes limit works, but the retries limit stil does not apply. const retry = { retries: RETRY_ATTEMTS, // calculateDelay: () => RETRY_DELAY, statusCodes: [102], errorCodes: ['ECONNRESET'], methods: ['POST'], }
Any chance there will be a fix for this any time soon?
My original report of this is 3 months old so I'm very doubtful. For now ig just ignore the feature and manually implement it.
Ok bummer. It would have been neat to use the config instead of manually wrap the call. Well well..
Same issue here, sigh.
Is this issue addressed and fixed? Thanks!
Describe the bug
Setting the statusCodes property on retry should ensure that only responses which match that code are retried. However I am seeing retries for statusCodes not specified.
Actual behavior
Non 429 responses are retried.
Expected behavior
Only 429 responses are retried
Code to reproduce
Checklist