-
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
403 error page from CloudFlare on https://registry.yarnpkg.com #5885
Comments
You are not alone! Do not panic! |
I got the same issue on my builds. |
OK.. I'm panicking.. |
It is worth noting the issue happens when trying to visit the npm registry and thus is probably not yarn's fault. http://registry.npmjs.com/ |
Same here on Win 10 with Yarn 1.7.0. Interestingly, I'm also getting the error for the npm registry page, as @sandersky noted, but |
@sandersky |
@sandersky Interesting -- though npm is having a different issue (Error 1016 compared to 1014 for yarn). 1016 sounds like a more garden-variety DNS error (Cloudflare simply can't resolve the DNS hostname) while 1014 is an error about a DNS record pointing at a domain in a different Cloudflare account. I wonder if npm's issue is causing yarn's, or if Cloudflare threw the switch on something that broke both at the same time. |
Maybe Cloudflare broke something, never deploy changes on a friday. 🍺 |
|
@sandersky Oh, npm's registry lives at https://registry.npmjs.org (not |
https://status.yarnpkg.com/ is green; hopefully somebody from Yarn will get on top of this. |
According to https://status.npmjs.org/ npm is making changes to their registry. My guess is that one of those changes was moving to Cloudflare. And as Cloudflare doesn't allow CNAMEs that point to other domains that also make use of Cloudflare, I'm guessing that that's what happened here. Possible solutions for this problem are
|
yarn ded :( - now my colleagues say "see - npm is the best option" and I lose all my hard work in making everyone use it :-P heh - anyway - im sure you guys will figure it out |
+1 on both dev machines and AWS CI machines. |
The fun stuff is that I just switched to yarn because of npm issues (e.g. npm/npm#20434) |
@arunesh90 how do you make |
npm confirmed that they are currently moving to CloudFlare (tweet). So it sounds like @arunesh90's explanation is the right one. |
@jakwuh let's go back to PHP.. 🤣 |
Getting 403s too 😭 |
To quote @alexbrazier never deploy on a Friday (or ever. You can't break anything if you don't change anything). |
As a temporary workaround you can config
Edit: @jaredLunde noted that it doesn't work with |
@fathyb MY HERO! <3 |
https://status.yarnpkg.com/ should probably reflect registry is down. |
@AviVahl npm was indeed testing if status.yarnpkg.com is working, whenever the registry is down. And it's not 🙃 |
It seems the yarn team has fixed the issue and added a http redirect to https://skimdb.npmjs.com/? |
@BirknerAlex my installations are still failing. |
Strange. If I open up the url I get redirected to the npm url on my workstation. But on my server it's still failing. Maybe a DNS caching issue. |
If this was a DNS change, it'll likely take a variable amount of time to propagate for different peeps. |
I still cannot install |
I'm now just getting a whole bunch of
|
> yarn add lodash --verbose
yarn add v1.7.0
...
verbose 0.266 current time: 2018-05-26T00:59:34.218Z
[1/4] 🔍 Resolving packages...
verbose 0.721 Performing "GET" request to "https://registry.yarnpkg.com/lodash".
verbose 15.821 Request "https://registry.yarnpkg.com/lodash" finished with status code 503.
verbose 15.823 Error: Received malformed response from registry for undefined. The registry may be down.
at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.7.0/libexec/lib/cli.js:243:66)
at new MessageError (/usr/local/Cellar/yarn/1.7.0/libexec/lib/cli.js:272:123)
at Function.<anonymous> (/usr/local/Cellar/yarn/1.7.0/libexec/lib/cli.js:52175:15)
at Generator.next (<anonymous>)
at step (/usr/local/Cellar/yarn/1.7.0/libexec/lib/cli.js:98:30)
at /usr/local/Cellar/yarn/1.7.0/libexec/lib/cli.js:116:14
at new Promise (<anonymous>)
at new F (/usr/local/Cellar/yarn/1.7.0/libexec/lib/cli.js:23451:28)
at Function.<anonymous> (/usr/local/Cellar/yarn/1.7.0/libexec/lib/cli.js:95:12)
at Function.findVersionInRegistryResponse (/usr/local/Cellar/yarn/1.7.0/libexec/lib/cli.js:52217:19)
error Received malformed response from registry for undefined. The registry may be down.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. > curl https://registry.yarnpkg.com/lodash
error sending request or no backends responded in time. Error: no backends responded in time |
Setting registry "https://registry.npmjs.org" seems work better, but still got status code 503 sometimes? |
Also not working for GitHub. I assume yarn just directs all queries to NPM to resolve packages. Edit: Seems as though it might be back up now? |
On development machine (macOS), flushing dns with |
Now everything works. |
seems good now! |
Everything is working flawlessly now. Yass! 🍺 🍺 |
Agreed with @leonardfactory, flushing my dns cache resolved the issue locally. |
We've worked with Cloudflare & the yarn team to set up a temporary workaround-- it's now a cname to yarn.npmjs.org, which we set up outside of Cloudflare. We'll have to come up with another solution soon, however, but this unblocks you all. |
3 hours panicking and now it works haha 😂 |
Thanks for being so responsive. |
@ceejbot does that mean for now that everyone who utilizes the registry will either need to work directly with npm to fix their cname or just continue to be down until further notice? |
OK I'm going to close this out now that it seems to be fully fixed. Happy Friday everyone (at least in US timezones). Go out and enjoy your weekend :) |
Glad to see everything working again! 😌 Thanks to Cloudflare and the npm team for being reactive about this issue! Seeing cooperation in practice feels great 🙂 |
Thanks, all working now. Appreciate the effort |
Still same issue! |
As of a few minutes ago. Was working fine all afternoon. |
|
Not sure if it's related, but I'm receiving 429 - Too Many Requests error while running the
|
I think those issues are coming directly from the npm registry, unfortunately 🙁 |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
yarn add <anything>
returns 403, which makes sense because https://registry.yarnpkg.com shows an error from CloudFlare:This article suggests it's caused by a DNS misconfiguration?
What is the expected behavior?
Package successfully installs.
Please mention your node.js, yarn and operating system version.
node 8.9, yarn 1.6, macOS 10.13.4 (though I doubt any of that is relevant 🙂)
The text was updated successfully, but these errors were encountered: