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(info): report empty npm response with infoFail again #5915

Merged
merged 2 commits into from
May 31, 2018
Merged

fix(info): report empty npm response with infoFail again #5915

merged 2 commits into from
May 31, 2018

Conversation

sth
Copy link
Contributor

@sth sth commented May 31, 2018

Summary

#5903 added support for exceptions thrown by the npm request, but changed handling of empty responses. They are now an invariant violation instead of an expected error reported as infoFail.

But empty responses can still happen. I assume they should continue to be handled like they were before #5903. This pull request makes this change.

Test plan

Tests should still pass and hopefully more reliably than before.

It was this way before #5903 and it looks like such a response can
still happen.
@sth sth changed the title Report empty npm response with infoFail Report empty npm response with infoFail again May 31, 2018
@sth sth changed the title Report empty npm response with infoFail again fix(info): Report empty npm response with infoFail again May 31, 2018
@sth sth changed the title fix(info): Report empty npm response with infoFail again fix(info): report empty npm response with infoFail again May 31, 2018
@arcanis
Copy link
Member

arcanis commented May 31, 2018

So now 404 are either empty or an error? 🙁

@arcanis arcanis merged commit b8b51eb into yarnpkg:master May 31, 2018
@sth sth deleted the empty-npm-response branch June 6, 2018 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants