npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Audit "Error: 503 No backends available" in case of high amount of dependencies

What I Wanted to Do

Expect to get list of vulnerabilities using
npm audit --json --registry=

What Happened Instead

npm audit --json --registry= ---d
Fails with

  "error": {
    "code": "ENOAUDIT",
    "summary": "Your configured registry ( does not support audit requests, or the audit endpoint is temporarily unavailable.",
    "detail": ""

I checked error handlers on level below and found that error came from backend.

{ Error: 503 No backends available - POST
    at res.buffer.catch.then.body (/Users/telegine/.nvm/versions/node/v8.9.0/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:106:15)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

Usually it takes 13-15s to fail.

Reproduction Steps

Run npm audit --json --registry= on project with a lot of dependencies.


2019-08-12T08_36_08_223Z-debug.log (2.9 KB)

Platform Info

$ npm --versions
{ 'my-project': '1.7.0',
  npm: '6.9.0',
  ares: '1.10.1-DEV',
  cldr: '31.0.1',
  http_parser: '2.7.0',
  icu: '59.1',
  modules: '57',
  nghttp2: '1.25.0',
  node: '8.9.0',
  openssl: '1.0.2l',
  tz: '2017b',
  unicode: '9.0',
  uv: '1.15.0',
  v8: '6.1.534.46',
  zlib: '1.2.11' }
$ node -p process.platform

Related issues

Still facing this problem