hyperledger-cacti/cacti

build: fix 404 HTTP PUT registry.npmjs.org weaver-besu-simpleasset

Opened this issue · 0 comments

Description

When executing the release scripts for v2.0.0-rc.4 this issue was encountered during the final step of publishing the nodejs packages to the registries:

lerna-lite sill HttpErrorGeneral: 404 Not Found - PUT https://registry.npmjs.org/@hyperledger%2fcacti-weaver-besu-simpleasset - Not found
lerna-lite sill     at /home/$USER/a/cacti-upstream/node_modules/npm-registry-fetch/lib/check-response.js:95:15
lerna-lite sill     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
lerna-lite sill     at async publish (/home/$USER/a/cacti-upstream/node_modules/libnpmpublish/lib/publish.js:53:15)
lerna-lite sill     at async npmPublish (file:///home/$USER/a/cacti-upstream/node_modules/@lerna-lite/publish/dist/lib/npm-publish.js:46:18)
lerna-lite sill     at async file:///home/$USER/a/cacti-upstream/node_modules/p-pipe/index.js:10:19
lerna-lite sill     at async file:///home/$USER/a/cacti-upstream/node_modules/p-queue/dist/index.js:187:36
lerna-lite sill  HttpErrorGeneral: 404 Not Found - PUT https://registry.npmjs.org/@hyperledger%2fcacti-weaver-besu-simpleasset - Not found
lerna-lite sill     at /home/$USER/a/cacti-upstream/node_modules/npm-registry-fetch/lib/check-response.js:95:15
lerna-lite sill     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
lerna-lite sill     at async publish (/home/$USER/a/cacti-upstream/node_modules/libnpmpublish/lib/publish.js:53:15)
lerna-lite sill     at async npmPublish (file:///home/$USER/a/cacti-upstream/node_modules/@lerna-lite/publish/dist/lib/npm-publish.js:46:18)
lerna-lite sill     at async file:///home/$USER/a/cacti-upstream/node_modules/p-pipe/index.js:10:19
lerna-lite sill     at async file:///home/$USER/a/cacti-upstream/node_modules/p-queue/dist/index.js:187:36 {
lerna-lite sill   headers: [Object: null prototype] {
lerna-lite sill     date: [ 'Mon, 09 Sep 2024 14:47:35 GMT' ],
lerna-lite sill     'content-type': [ 'application/json' ],
lerna-lite sill     'content-length': [ '21' ],
lerna-lite sill     connection: [ 'keep-alive' ],
lerna-lite sill     'cf-ray': [ '8c07f96f590af983-SJC' ],
lerna-lite sill     vary: [ 'Accept-Encoding' ],
lerna-lite sill     server: [ 'cloudflare' ],
lerna-lite sill     'x-fetch-attempts': [ '1' ]
lerna-lite sill   },
lerna-lite sill   statusCode: 404,
lerna-lite sill   code: 'E404',
lerna-lite sill   method: 'PUT',
lerna-lite sill   uri: 'https://registry.npmjs.org/@hyperledger%2fcacti-weaver-besu-simpleasset',
lerna-lite sill   body: { error: 'Not found' },
lerna-lite sill   pkgid: '@hyperledger/cacti-weaver-besu-simpleasset@2.0.0-rc.4'
lerna-lite sill }
lerna-lite WARN notice Package failed to publish: @hyperledger/cacti-weaver-besu-simpleasset
lerna-lite ERR! E404 Not found
lerna-lite ERR! errno "undefined" is not a valid exit code - exiting with code 1
lerna-lite ERR! E404 Not found
node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

HttpErrorGeneral: 404 Not Found - PUT https://registry.npmjs.org/@hyperledger%2fcacti-weaver-besu-simpleasset - Not found
    at /home/$USER/a/cacti-upstream/node_modules/npm-registry-fetch/lib/check-response.js:95:15
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async publish (/home/$USER/a/cacti-upstream/node_modules/libnpmpublish/lib/publish.js:53:15)
    at async npmPublish (file:///home/$USER/a/cacti-upstream/node_modules/@lerna-lite/publish/dist/lib/npm-publish.js:46:18)
    at async file:///home/$USER/a/cacti-upstream/node_modules/p-pipe/index.js:10:19
    at async file:///home/$USER/a/cacti-upstream/node_modules/p-queue/dist/index.js:187:36 {
  name: 'ValidationError',
  headers: [Object: null prototype] {
    date: [ 'Mon, 09 Sep 2024 14:47:35 GMT' ],
    'content-type': [ 'application/json' ],
    'content-length': [ '21' ],
    connection: [ 'keep-alive' ],
    'cf-ray': [ '8c07f96f590af983-SJC' ],
    vary: [ 'Accept-Encoding' ],
    server: [ 'cloudflare' ],
    'x-fetch-attempts': [ '1' ]
  },
  statusCode: 404,
  code: 'E404',
  method: 'PUT',
  uri: 'https://registry.npmjs.org/@hyperledger%2fcacti-weaver-besu-simpleasset',
  body: { error: 'Not found' },
  pkgid: '@hyperledger/cacti-weaver-besu-simpleasset@2.0.0-rc.4'
}

Node.js v20.11.1

Complete log file and command to reproduce:
yarn-lerna-publish-2.0.0-rc.4.crash.log

Acceptance Criteria

  1. The lerna publish script completes successfully without errors (at the next release issuance)