Skip to content
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

fix(node-http-handler): check for error code in isTransientError #4018

Merged
merged 1 commit into from Oct 5, 2022

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Oct 5, 2022

Issue

internal P72696063

Description

The NodeHttpHandler is supposed to decorate any caught errors with { name: "TimeoutError" } if it recognizes a nodejs timeout error. However, there have been observed cases of a nodejs timeout error reaching the retry strategy check without having this name decoration. This causes the retry decider to abandon the request early.

  • This PR duplicates the NodeJS error.code check for timeout errors at the retry decider to prevent fallthrough of NodeJS timeout errors that were not caught and decorated by the Node HTTP handler.

@kuhe kuhe requested a review from a team as a code owner October 5, 2022 17:51
@kuhe kuhe merged commit ab0e7be into aws:main Oct 5, 2022
@kuhe kuhe deleted the fix/retry branch October 5, 2022 18:00
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant