Open golyshevd opened 4 hours ago
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.
Yes I would. I think I have a solution. But right now I am trying to run tests
Idk why many tests fail even without my changes (on main branch) like that:
Maybe I did not set something up yet? Exactly these 76 tests fail stable for me
What Node.js version are you running, what OSS are you in? Tests are passing here?
What Node.js version are you running, what OSS are you in? Tests are passing here?
node -v
v18.18.2
Tried v22 - tests passed )
Just wrongly assumed that package.engines.node
is also fine for development
Bug Description
RetryAgent
does not supportthrowOnError: false
option, it always throwsUND_ERR_REQ_RETRY
on retries limit exceededReproducible By
Expected Behavior
Expecting
RetryAgent
to supportthrowOnError
option as descendant of ofDispatcher
. ExpectingRetryAgent.request
to still returnDispatcher.ResponseData
even if retries limit exceededLogs & Screenshots
Environment
Mac OS Sonoma, Node.js v18.18.2, undici@6.20.1
Additional context
Faced this issue when tried to know how to get backend response's body after N unsuccessful retries. It could be natively possible if
RetryAgent
was taking into accountthrowOnError