Skip to content
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

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

Open
petermetz opened this issue Sep 9, 2024 · 0 comments
Open
Labels
Flaky-Test-Automation Issues related to test stability (which is a long running issue that can never fully be solved) Triage_Needed Triage if the issue is/still relevant, bug report is valid, arch/design details etc.
Milestone

Comments

@petermetz
Copy link
Contributor

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/[email protected]'
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/[email protected]'
}

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)
@petermetz petermetz added Triage_Needed Triage if the issue is/still relevant, bug report is valid, arch/design details etc. Flaky-Test-Automation Issues related to test stability (which is a long running issue that can never fully be solved) labels Sep 9, 2024
@petermetz petermetz added this to the vT.B.D milestone Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Flaky-Test-Automation Issues related to test stability (which is a long running issue that can never fully be solved) Triage_Needed Triage if the issue is/still relevant, bug report is valid, arch/design details etc.
Projects
None yet
Development

No branches or pull requests

1 participant