question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting 403s when publishing unpublished packages

See original GitHub issue

I am experiencing an issue with publishing every so often. Sometimes lerna will tell me lerna ERR! E403 You cannot publish over the previously published versions even for version that aren’t published, or I had never published them before running the command.

  • Example 1 - Publishing a canary for a PR 7.11.1-canary.619.8042.0. The 8042 is the build number, which would always be unique. Everything else published fine, and we always --force-publish. If you look on npm, this version was actually published when the command was run

  • Example 2 - This was during an actual release. This one is a little different, the version it says was released never actually made it to npm

Expected Behavior

Should successfully publish previously unpublished version of package.

Current Behavior

Get an error for a version I have never released before.

Possible Solution

It feels like there may be an unawaited promise, or maybe npm is acting wonky?

Steps to Reproduce (for bugs)

See above linked examples. It’s only ever happened twice and it’s rare.

Context

This botched a few releases. Only 1 was an official release.

Your Environment

Executable Version
lerna --version 3.17.0
npm --version 5.3.0
node --version 8.14

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
hipstersmoothiecommented, Nov 28, 2019

A little more context to what the issue might be (this guy is an npm employee) https://twitter.com/mikemimik/status/1199762406735523840?s=21

On Thu, Nov 28, 2019 at 10:41 AM Wojtek Trocki notifications@github.com wrote:

I think regression started after this update to all monorepos: aerogear/graphback#456 https://github.com/aerogear/graphback/pull/456

I will monitor situation as npm also were behaving strangely and post more info (Going to add verbose mode to release)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lerna/lerna/issues/2313?email_source=notifications&email_token=AAJDEBAUGG2PIAWUNC4QHW3QWAGGVA5CNFSM4JC7TKAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFNIT5Y#issuecomment-559581687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJDEBEUWOETMTWZ3ESY2KTQWAGGVANCNFSM4JC7TKAA .

0reactions
wtrockicommented, Nov 28, 2019

I think regression started after this update to all monorepos: https://github.com/aerogear/graphback/pull/456

I will monitor situation as npm also were behaving strangely and post more info (Going to add verbose mode to release)

Read more comments on GitHub >

github_iconTop Results From Across the Web

NPM Publish Registry - 403 Forbidden - "You don't have ...
I get an error that I am not allowed to push my package to the registry. 403 Forbidden - PUT https://registry.npmjs.org/qdb - You...
Read more >
CHAPTER 196 - Wisconsin Legislative Documents
Publish schedules; regulations; files; joint rates. ... property for the purpose of obtaining any information related to.
Read more >
Acquire Your Product Using CSM - TechDocs - Broadcom Inc.
Learn how to acquire your product software packages using CSM. ... access URL, which you can get from your system administrator.
Read more >
Kubernetes plugin 'Unauthorised" when using labels/token ...
Hi Using any of the kubernetes checks, I get an Unauthorised error when using ... sensu check using curl with the label substitution...
Read more >
403 Forbidden when publishing a package - MSDN - Microsoft
Unfortunately I'm unable to get it to work currently. I have a build that creates a NuGet package, and a "NuGet Publisher" task....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found