-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RetryAgent does not support throwOnError: false #3837
Comments
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests. |
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 ) |
In main branch (version: 7.0.0-alpha.3) Does it mean now that I think the issue is not a bug now, but feature request. I still need to get response after retries did not lead to success |
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
.Expecting
RetryAgent.request
to still returnDispatcher.ResponseData
even if retries limit exceededLogs & Screenshots
Environment
Mac OS Sonoma, Node.js v18.18.2, [email protected]
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
The text was updated successfully, but these errors were encountered: