-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Uplink timeouts/connectivity issues reported as "no such package available" #720
Comments
I will check it our next week, now I am focused in v3 release 🙃. Unless someone around here wants to dive into it. |
I'm having all sorts of issues like this all of a sudden:
It's changing every time I run |
So, strangely enough I'm not getting these errors any more after I re-installed our verdaccio server but with |
I think NPM have made further changes post Cloudflare migration, since the errors I was seeing on Travis (even on GCE) have now stopped with no changes on my part. |
Hi! We're seeing this quite a lot again the last week or two on TravisCI. Whilst the underlying issue (network connectivity problems/...) aren't Verdaccio's fault - it would be good for Verdaccio to report the real error and/or handle this case better. |
Should help with `Couldn't find package` errors, see verdaccio/verdaccio#720
fix #1328 and #720 Type: bug The following has been addressed in the PR: Instead of returning a 404 (Not Found) when npm, yarn, etc requests a package and the package cannot be acquired from an uplink due to a connection timeout, socket timeout, or connection reset problem, a 503 (service unavailable) is returned by Verdaccio instead. In limited testing of a few versions of npm and yarn, both of these clients correctly attempt to retry the request when a 503 is returned. Added functional tests to verify the behavior (this adds a dev dependency on nock, which provides HTTP request mocking Description: This resolves issue #1328 and #720, and ensures npm/yarn install commands don't fail immediately when there is an intermittent network timeout problem with an uplink. Instead Verdaccio will appropriately respond to the client with a 503. A 404 response (current behavior) incorrectly tells the client that the package does not exist (which may or may not be true) and to not try again.
🤖This thread has been automatically locked 🔒 since there has not been any recent activity after it was closed. |
Describe the bug
If the uplink request to a registry fails with a connectivity error such as
socket hang up
orETIMEDOUT
, the response to the client is an HTTP 404 which makes it give a misleading error message about the package not existing.The yarn client reports:
However the Verdaccio logs show the real cause:
To Reproduce
Steps to reproduce the behavior:
master
of https://travis-ci.org/mozilla-neutrino/neutrino-dev thereby triggering the TravisCI runExpected behavior
Configuration File (cat ~/.config/verdaccio/config.yaml)
Debugging output
https://travis-ci.org/mozilla-neutrino/neutrino-dev/jobs/385364189#L989
Additional context
This issue also occurred when using the npmjs.org registry instead of Yarn's.
The text was updated successfully, but these errors were encountered: