Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm ERR! publish Failed PUT 500 #19771

Open
1 of 13 tasks
jfoclpf opened this issue Feb 7, 2018 · 0 comments
Open
1 of 13 tasks

npm ERR! publish Failed PUT 500 #19771

jfoclpf opened this issue Feb 7, 2018 · 0 comments

Comments

@jfoclpf
Copy link

jfoclpf commented Feb 7, 2018

I'm opening this issue because:

  • npm is crashing.
  • npm is producing an incorrect install.
  • npm is doing something I don't understand.
  • Other (see below for feature requests):

What's going wrong?

After npm publish I get

npm ERR! publish Failed PUT 500
I already logon again, and the problem persist

How can the CLI team reproduce the problem?

I don't know if you can reproduce, but in my package I get the error when I do

$ npm publish

supporting information:

  • npm -v prints: 5.6.0
  • node -v prints: v8.9.4
  • npm config get registry prints: https://registry.npmjs.org/
  • Linux?: Ubuntu
  • Network issues:
    • Geographic location where npm was run: Netherlands
    • I use a proxy to connect to the npm registry.
    • I use a proxy to connect to the web.
    • I use a proxy when downloading Git repos.
    • I access the npm registry via a VPN
    • I don't use a proxy, but have limited or unreliable internet access.
  • Container:
    • I develop using Vagrant on Windows.
    • I develop using Vagrant on OS X or Linux.
    • I develop / deploy using Docker.
    • I deploy to a PaaS (Triton, Heroku).

Log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'publish' ]
2 info using npm@5.6.0
3 info using node@v8.9.4
4 verbose npm-session c67d08ce3b61beca
5 verbose publish [ '.' ]
6 info lifecycle autocosts@5.1.8~prepublish: autocosts@5.1.8
7 info lifecycle autocosts@5.1.8~prepare: autocosts@5.1.8
8 info lifecycle autocosts@5.1.8~prepublishOnly: autocosts@5.1.8
9 info lifecycle autocosts@5.1.8~prepack: autocosts@5.1.8
10 info lifecycle autocosts@5.1.8~postpack: autocosts@5.1.8
11 verbose getPublishConfig undefined
12 silly mapToRegistry name autocosts
13 silly mapToRegistry using default registry
14 silly mapToRegistry registry https://registry.npmjs.org/
15 silly mapToRegistry data { type: 'tag',
15 silly mapToRegistry   registry: true,
15 silly mapToRegistry   where: undefined,
15 silly mapToRegistry   raw: 'autocosts',
15 silly mapToRegistry   name: 'autocosts',
15 silly mapToRegistry   escapedName: 'autocosts',
15 silly mapToRegistry   scope: undefined,
15 silly mapToRegistry   rawSpec: '',
15 silly mapToRegistry   saveSpec: null,
15 silly mapToRegistry   fetchSpec: 'latest',
15 silly mapToRegistry   gitRange: undefined,
15 silly mapToRegistry   gitCommittish: undefined,
15 silly mapToRegistry   hosted: undefined }
16 silly mapToRegistry uri https://registry.npmjs.org/autocosts
17 verbose publish registryBase https://registry.npmjs.org/
18 silly publish uploading /tmp/npm-23132-5880cd6e/tmp/fromDir-404c79e0/package.tgz
19 verbose request uri https://registry.npmjs.org/autocosts
20 verbose request sending authorization for write operation
21 info attempt registry request try #1 at 19:53:25
22 verbose request using bearer token for auth
23 verbose request id ffdbe27349c733c0
24 http request PUT https://registry.npmjs.org/autocosts
25 http 500 https://registry.npmjs.org/autocosts
26 verbose headers { 'content-type': 'application/json',
26 verbose headers   'cache-control': 'max-age=0',
26 verbose headers   'content-length': '17',
26 verbose headers   'accept-ranges': 'bytes',
26 verbose headers   date: 'Wed, 07 Feb 2018 18:53:44 GMT',
26 verbose headers   via: '1.1 varnish',
26 verbose headers   connection: 'keep-alive',
26 verbose headers   'x-served-by': 'cache-ams4431-AMS',
26 verbose headers   'x-cache': 'MISS',
26 verbose headers   'x-cache-hits': '0',
26 verbose headers   'x-timer': 'S1518029607.511362,VS0,VE17767' }
27 info retry will retry, error on last attempt: Error: Registry returned 500 for PUT on https://registry.npmjs.org/autocosts
28 info attempt registry request try #2 at 19:53:54
29 verbose request using bearer token for auth
30 http request PUT https://registry.npmjs.org/autocosts
31 http 500 https://registry.npmjs.org/autocosts
32 verbose headers { 'content-type': 'application/json',
32 verbose headers   'cache-control': 'max-age=0',
32 verbose headers   'content-length': '17',
32 verbose headers   'accept-ranges': 'bytes',
32 verbose headers   date: 'Wed, 07 Feb 2018 18:54:08 GMT',
32 verbose headers   via: '1.1 varnish',
32 verbose headers   connection: 'keep-alive',
32 verbose headers   'x-served-by': 'cache-ams4431-AMS',
32 verbose headers   'x-cache': 'MISS',
32 verbose headers   'x-cache-hits': '0',
32 verbose headers   'x-timer': 'S1518029635.887541,VS0,VE13478' }
33 info retry will retry, error on last attempt: Error: Registry returned 500 for PUT on https://registry.npmjs.org/autocosts
34 info attempt registry request try #3 at 19:55:08
35 verbose request using bearer token for auth
36 http request PUT https://registry.npmjs.org/autocosts
37 http 500 https://registry.npmjs.org/autocosts
38 verbose headers { 'content-type': 'application/json',
38 verbose headers   'cache-control': 'max-age=0',
38 verbose headers   'content-length': '17',
38 verbose headers   'accept-ranges': 'bytes',
38 verbose headers   date: 'Wed, 07 Feb 2018 18:55:22 GMT',
38 verbose headers   via: '1.1 varnish',
38 verbose headers   connection: 'keep-alive',
38 verbose headers   'x-served-by': 'cache-ams4431-AMS',
38 verbose headers   'x-cache': 'MISS',
38 verbose headers   'x-cache-hits': '0',
38 verbose headers   'x-timer': 'S1518029709.199707,VS0,VE13540' }
39 error publish Failed PUT 500
40 verbose stack Error: Registry returned 500 for PUT on https://registry.npmjs.org/autocosts
40 verbose stack     at makeError (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:314:12)
40 verbose stack     at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:292:14)
40 verbose stack     at Request._callback (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:216:14)
40 verbose stack     at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/request.js:186:22)
40 verbose stack     at emitTwo (events.js:126:13)
40 verbose stack     at Request.emit (events.js:214:7)
40 verbose stack     at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1163:10)
40 verbose stack     at emitOne (events.js:116:13)
40 verbose stack     at Request.emit (events.js:211:7)
40 verbose stack     at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1085:12)
40 verbose stack     at Object.onceWrapper (events.js:313:30)
40 verbose stack     at emitNone (events.js:111:20)
40 verbose stack     at IncomingMessage.emit (events.js:208:7)
40 verbose stack     at endReadableNT (_stream_readable.js:1055:12)
40 verbose stack     at _combinedTickCallback (internal/process/next_tick.js:138:11)
40 verbose stack     at process._tickCallback (internal/process/next_tick.js:180:9)
41 verbose statusCode 500
42 verbose pkgid autocosts
43 verbose cwd /home/jfolpf/autocosts
44 verbose Linux 4.4.0-109-generic
45 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "publish"
46 verbose node v8.9.4
47 verbose npm  v5.6.0
48 error code E500
49 error Registry returned 500 for PUT on https://registry.npmjs.org/autocosts
50 verbose exit [ 1, true ]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants