Cli: [BUG] 429个请求过多

创建于 2020-02-17  ·  266评论  ·  资料来源: npm/cli

什么为什么

我收到E429错误

什么时候



  • 每次我运行npm ci (至少从今天开始)

哪里



  • npm公共注册表

当前行为

  • npm ci命令返回E429错误(“太多请求” )并且未完成软件包安装

重现步骤

  • npm ci

预期行为

  • 它应该安装软件包

最有用的评论

来自Cloudflare的问好和歉意,直接在问题注释中进行事后分析。

我是DDoS保护团队的工程经理,今天上午11:06 UTC,我们调整了一条影响我们信号之一的规则。 该信号与HTTP引用标头有关,我们有一段代码可以查看无效的引用标头。 在这种情况下,我们对其进行了调整,以使其不仅包括“明显的垃圾”,而且包括“任何不符合HTTP规范的内容” ...即引用者是URI吗? 如果不是,则有助于了解不良流量。

那么...这为什么影响npmjs.org? 事实证明,根据HTTP规范,大量NPM流量将引用发送为“安装”,这是无效的。 由于NPM也是一个繁忙的站点,这导致DDoS系统将其接收并将该流量视为HTTP泛滥,并确定应应用速率限制。

当我们注意到NPM看到HTTP 429s增多(在Twitter上看到)时,我们联系了NPM并开始了内部调查。 一旦确定了根本原因,我们便恢复了更改,该更改是在世界标准时间13:00。

我们将注意到NPM和另外1个站点出于HTTP规范之外的目的而使用了引荐来源网址,并且我们将更新我们的系统以确保不会再次发生这种情况。 另外,我们将改进对这种性质的更改的监视,以便我们更快地发现影响并自动回滚。

所有266条评论

此处相同,但带有npm -g install @vue/cli

npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code E429
npm ERR! 429 Too Many Requests - GET https://registry.npmjs.org/lowdb/-/lowdb-1.0.0.tgz

805类似问题-随机403或429

在我们的管道上有同样的问题。 响应在403 Forbidden420 Too Many Requests

我们在AWS中运行的任何CI任务中都看到了这一点

Step 8/11 : RUN npm ci
 ---> Running in 87051ac87a51
npm ERR! code E429
npm ERR! 429 Too Many Requests - GET https://registry.npmjs.org/@types/xxhashjs/-/xxhashjs-0.2.1.tgz
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-02-17T11_49_35_151Z-debug.log
The command '/bin/sh -c npm ci' returned a non-zero code: 1
ERROR: Job failed: exit code 1

同样对我来说竹制:

error   17-feb-2020 12:49:46    npm ERR! code E429
error   17-feb-2020 12:49:46    npm ERR! 429 Too Many Requests - GET https://registry.npmjs.org/@snyk/configstore/-/configstore-3.2.0-rc1.tgz

集中式基础架构:〜(
(正在等待验尸,但屏住了呼吸...)

列出(已验证的)公共注册表镜像列表会很有用。 我找到了一些但我不相信他们。

本地和Circle CI均相同

使用Circle CI和本地也能看到相同的结果

npm ERR! code E429 npm ERR! 429 Too Many Requests - GET https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz

我看到类似的错误。

“此网站的所有者(registry.npmjs.org)暂时禁止您访问此网站”

“您受到速率限制”

我猜这一切有关吗?

在Heroku上部署时,我们也会遇到此问题。

npm ERR! code E429
npm ERR! 429 Too Many Requests - GET https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz

在heroku上部署时具有相同的错误。

与AWS CodeBuild和npm i -g aws-cdk相同

> npm错误! 代码E429

28 | npm ERR! 429请求太多-GET https://registry.npmjs.org/aws-cdk

一般服务器问题?

我也有同样的问题
npm ERR! 代码E429
npm ERR! 429请求太多-GET https://registry.npmjs.org/silent-error

在本地安装软件包时,此处相同。
瑞典。

``npm ERR! 代码E429
npm ERR! 429请求过多-GET https://registry.npmjs.org/lodash

是的,我也在Travis上以npm audit看到了这个:

npm ERR! audit Your configured registry (https://registry.npmjs.org/) may not support audit requests, or the audit endpoint may be temporarily unavailable.

npm ERR! audit The server said:

Access denied | registry.npmjs.org used Cloudflare to restrict access
You are being rate limited
The owner of this website (registry.npmjs.org) has banned you temporarily from accessing this website.

同样的事情在这里发生。 执行npm update时出现错误

17-Feb-2020 11:47:48 npm ERR! code E429
17-Feb-2020 11:47:48 npm ERR! 429 Too Many Requests - GET https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.8.3.tgz

这里同样的问题。 我们正在使用竹词。 自己安装。
该文件可从服务器本身访问:

$ wget https://registry.npmjs.org/@babel/plugin -transform-b​​lock-scoping /-/ plugin-transform-b​​lock-scoping-7.8.3.tgz
--2020-02-17 11:59:28-- https://registry.npmjs.org/@babel/plugin -transform-b​​lock-scoping /-// plugin-transform-b​​lock-scoping-7.8.3.tgz
正在解析Registry.npmjs.org(registry.npmjs.org)... 104.16.17.35、104.16.24.35、104.16.26.35,...
正在连接至registry.npmjs.org(registry.npmjs.org)| 104.16.17.35 |:443 ...已连接。
HTTP请求已发送,正在等待响应... 200 OK
长度:6735(6.6K)[应用程序/八位字节流]
保存至:“ plugin-transform-b​​lock-scoping-7.8.3.tgz”

plugin-transform-b​​lock-scoping-7.8.3.tgz 100%[================================== ================================================== = ========================================= >>] 6.58K- .-KB / s在0s

2020-02-17 11:59:28(95.5 MB / s)-'plugin-transform-b​​lock-scoping-7.8.3.tgz'已保存[6735/6735]''

也是面临这个问题,这是全球性的事情还是区域性的问题? 去年我们在德国也有类似经历。

同样在这里在Gitlab CI上运行

荷兰也一样。 (来自爱尔兰的AWS Codebuild)

俄罗斯来

伊斯坦布尔在这里

这似乎是Registry.npmjs.org网站与Cloudflare相关的问题。

在更新时收到以下html响应:

<!DOCTYPE html>
npm ERR! <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
npm ERR! <!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
npm ERR! <!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
npm ERR! <!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
npm ERR! <head>
npm ERR! <title>Access denied | registry.npmjs.org used Cloudflare to restrict access</title>
npm ERR! <meta charset="UTF-8" />
npm ERR! <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
npm ERR! <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
npm ERR! <meta name="robots" content="noindex, nofollow" />
npm ERR! <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />
npm ERR! <link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" type="text/css" media="screen,projection" />
npm ERR! <!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" type="text/css" media="screen,projection" /><![endif]-->
npm ERR! <style type="text/css">body{margin:0;padding:0}</style>
npm ERR!
npm ERR!
npm ERR! <!--[if gte IE 10]><!--><script type="text/javascript" src="/cdn-cgi/scripts/zepto.min.js"></script><!--<![endif]-->
npm ERR! <!--[if gte IE 10]><!--><script type="text/javascript" src="/cdn-cgi/scripts/cf.common.js"></script><!--<![endif]-->
npm ERR!
npm ERR!
npm ERR!
npm ERR! </head>
npm ERR! <body>
npm ERR!   <div id="cf-wrapper">
npm ERR!     <div class="cf-alert cf-alert-error cf-cookie-error" id="cookie-alert" data-translate="enable_cookies">Please enable cookies.</div>
npm ERR!     <div id="cf-error-details" class="cf-error-details-wrapper">
npm ERR!       <div class="cf-wrapper cf-header cf-error-overview">
npm ERR!         <h1>
npm ERR!           <span class="cf-error-type" data-translate="error">Error</span>
npm ERR!           <span class="cf-error-code">1015</span>
npm ERR!           <small class="heading-ray-id">Ray ID: REDACTED &bull; 2020-02-17 11:26:27 UTC</small>
npm ERR!         </h1>
npm ERR!         <h2 class="cf-subheadline">You are being rate limited</h2>
npm ERR!       </div><!-- /.header -->
npm ERR!
npm ERR!       <section></section><!-- spacer -->
npm ERR!
npm ERR!       <div class="cf-section cf-wrapper">
npm ERR!         <div class="cf-columns two">
npm ERR!           <div class="cf-column">
npm ERR!             <h2 data-translate="what_happened">What happened?</h2>
npm ERR!             <p>The owner of this website (registry.npmjs.org) has banned you temporarily from accessing this website.</p>
npm ERR!           </div>
npm ERR!
npm ERR!
npm ERR!         </div>
npm ERR!       </div><!-- /.section -->
npm ERR!
npm ERR!       <div class="cf-error-footer cf-wrapper">
npm ERR!   <p>
npm ERR!     <span class="cf-footer-item">Cloudflare Ray ID: <strong>REDACTED</strong></span>
npm ERR!     <span class="cf-footer-separator">&bull;</span>
npm ERR!     <span class="cf-footer-item"><span>Your IP</span>: REDACTED</span>
npm ERR!     <span class="cf-footer-separator">&bull;</span>
npm ERR!     <span class="cf-footer-item"><span>Performance &amp; security by</span> <a href="https://www.cloudflare.com/5xx-error-landing?utm_source=error_footer" id="brand_link" target="_blank">Cloudflare</a></span>
npm ERR!
npm ERR!   </p>
npm ERR! </div><!-- /.error-footer -->
npm ERR!
npm ERR!
npm ERR!     </div><!-- /#cf-error-details -->
npm ERR!   </div><!-- /#cf-wrapper -->
npm ERR!
npm ERR!   <script type="text/javascript">
npm ERR!   window._cf_translation = {};
npm ERR!
npm ERR!
npm ERR! </script>
npm ERR!
npm ERR! </body>
npm ERR! </html>

AWS Codebuild us-east-1发生相同的问题。 直到大约30分钟前在本地被破坏,但现在又恢复工作了(来自爱尔兰本地)

这似乎是Registry.npmjs.org网站与Cloudflare相关的问题。

有没有不使用cloudflare的镜像?

同样的问题! 构建管道失败:(

相同: npm ERR! code E429

而已。 互联网已经完成。 大家再见。

我要去吃午饭,希望我回来的时间少于一个小时能解决这个问题。

我们几乎可以确认这是一个npm问题,但是在其状态页面上,所有内容均列为可操作状态。 那么,npm状态页面的目的是什么?

同样的问题。 从us-east-1 AWS

npm ERR! code E429
npm ERR! 429 Too Many Requests - GET https://registry.npmjs.org/archy/-/archy-1.0.0.tgz

刚刚在Twitter上与我们联系,🤞我们将很快获得信息。

相同...

npm ERR! code E429
npm ERR! 429 Too Many Requests - GET https://registry.npmjs.org/react-scripts/-/react-scripts-3.4.0.tgz

相同。 不同的软件包,但是从今天早些时候开始,在执行npm install和npm ci时,总是收到429个请求

:(

自从今天早上以来我们都很沮丧。 NPM损坏。 都柏林在这里

现在适合我。 5 $ /包。 下午我。

现在适合我。 5 $ /包。 下午我。

很便宜

在韩国,我也面临这个问题。

$ npm install --save-dev typescript
npm ERR! code E429
npm ERR! 429 Too Many Requests: [email protected]

每个NPM软件包的安装时间都太长。
NPM发生了什么?

幸运的是,我们只需要坐着等
想象一下,如果我们都是建筑工人,突然所有锤子在世界各地停止工作:思考:

在您的构建中使用yarnpkg镜像怎么样?

一切都很好http://status.npmjs.org/

一切都很好http://status.npmjs.org/

image

确实😄

您可以使用: https :

# npm
npm config set registry https://npm.open-registry.dev

# yarn
yarn config set registry https://npm.open-registry.dev

在多个环境(travis,本地,服务器)中存在相同的问题。

NPM:近乎完美的镜子

NPM:周一不表演

NPM:星期一没问题

Gitlab运行程序中的同一问题

在heroku中尝试构建时出现相同的问题。 CF错误代码1015。

该网站的所有者(registry.npmjs.org)已暂时禁止您访问该网站

当我执行npm install命令时,我也收到此错误消息:“访问被拒绝| registry.npmjs.org使用Cloudflare来限制访问。您的速率受到限制。此网站的所有者(registry.npmjs.org)暂时禁止了您通过访问该网站。 ”。
我来自菲律宾宿雾。 这是CloudFlare问题还是NPM?

download

该网站的所有者(registry.npmjs.org)已暂时禁止您访问该网站。

大家好,我们可能会把它限制在实际有用的范围内,以便人们重新开始工作。

看来这个问题相当普遍,而不是每个人都在“ X上发生了这件事”上发贴,直到我们听到NPM的消息后,我们才会紧紧抓住? 或者,如果受影响,我们可以+1评论。

NPM:不是程序包管理器

我们也在瑞典这里过时了👌🙆‍♂

看来这个问题相当普遍,而不是每个人都在“ X上发生了这件事”上发贴,直到我们听到NPM的消息后,我们才会紧紧抓住? 或者,如果受影响,我们可以+1评论。

罗,模因和无用的评论为胜利

在AWS build上遇到相同的问题

这是否意味着我们可以第二次午餐了?

在CircleCi构建上有相同的问题

在Github Actions上也有同样的问题!

image

哇,模因评论XD

伙计们,当我们压力很大的时候,全都在同一条船上,分享一些爱,真是太棒了,但是...我们可以停止对彼此说“我也是”吗?

模因总是受到欢迎,顺便说一句!

这是过度依赖他人计算机的结果@phaberest你是毫无意义的,我也是:-}

giphy

相同!

NPM刚刚告诉我,感谢大家,我们可以休息一天。

这里同样的问题

3pg17i

Screenshot 2020-02-17 at 14 40 56

这仍然适用吗?

相同

Npm总部现在: