-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Ensure Yarn retries on 5xx errors #2849
Comments
@rally25rs, @gsklee, @torifat would you guys want to give this feature a try? |
I've been trying to spend my spare time on issue 3603 (reimplementing upgrade and upgrade-interactive), but if no one else has time, I can give it some attention. |
I will give it a try tonight :) if @rally25rs has not done already. |
You guys rock! |
Guess I can go picking something else then :-p |
Thanks for looking into this @torifat 👍 If you end up needing a hand, let me know. |
@rally25rs Setting up Charles Proxy 😂 ... |
I have spent some time on this. We already have a retry mechanism in Any suggestion? @bestander @rally25rs |
Use your best judgement, retry-request code does not look too bad. |
Do you want to request a feature or report a bug?
Both
What is the current behavior?
Yarn sometimes shows 5xx errors when installing packages (eg. see #2769)
What is the expected behavior?
Yarn is supposed to be resilient to poor network conditions. It sounds like it might not be retrying correctly in some scenarios. We should verify that it does indeed retry on 5xx errors, by using a debugging proxy such as Fiddler to intentionally inject 500 errors and see how Yarn reacts.
The text was updated successfully, but these errors were encountered: