Skip to content

Having issues with retry interceptor #2963

Closed Answered by metcoder95
acommodari asked this question in Q&A
Discussion options

You must be logged in to vote

👋
I tried to reproduce your issue and so far, behavioural speaking is working as expected, though I found the bug around the counter and I'm opening a PR for it.

Outocme after exhausting a retry counter of 4

Server is running on port 3000
retrying {
  err: 'UND_ERR_REQ_RETRY',
  state: { counter: 1 },
  opts: {
    retry: [Function: retry],
    retryAfter: true,
    maxTimeout: 10000,
    timeout: 400,
    timeoutFactor: 2,
    maxRetries: 4,
    methods: [ 'GET', 'HEAD', 'OPTIONS', 'PUT', 'DELETE', 'TRACE' ],
    statusCodes: [ 500, 502, 503, 504, 429 ],
    errorCodes: [
      'ECONNRESET',
      'ECONNREFUSED',
      'ENOTFOUND',
      'ENETDOWN',
      'ENETUNREACH',
      'EHOSTDOWN',…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@acommodari
Comment options

@acommodari
Comment options

@metcoder95
Comment options

Answer selected by acommodari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants