Comments (11)
@pvdlg is there other way to debug this?
Artifactory Version 6.16.0
Latest Release: 6.17.0
We're having a hard time debugging this on our end.
[2020-02-29T03:27:23.969Z] npm ERR! code E401
[2020-02-29T03:27:23.969Z] npm ERR! Unable to authenticate, need: Basic realm="Artifactory Realm"
[2020-02-29T03:27:23.969Z]
[2020-02-29T03:27:23.969Z] npm ERR! A complete log of this run can be found in:
[2020-02-29T03:27:23.970Z] exitCode: 1,
[2020-02-29T03:27:23.970Z] signal: undefined,
[2020-02-29T03:27:23.970Z] signalDescription: undefined,
It was working before 15.13.24
of semantic-release.
from cli.
I guess if the registry defined by the user on the first question is not the default npm one, the CLI should ask, something like "Does your registry require legacy auth?". If the user answer yes then yes we should ask the email in addition of the username and password that we already ask.
And also skip the step to get the token.
from cli.
The very very large majority of users will use the default npm registry, and therefore use a token auth.
So as long as we ask this question only to users who do not use the default registry, that's seems good!
from cli.
+1 - I'm experiencing the same problem.
from cli.
Same problem here, any reply from the maintainer at least?
from cli.
+1
from cli.
Allowing the 204 code seems to get me through, but then I got 400 from JFrog 4.7.1 trying to publish.
@@ -95,7 +95,7 @@
function done (token, cb) {
return function (error, data, json, response) {
- if (!error && (!response || response.statusCode === 201)) {
+ if (!error && (!response || response.statusCode === 201 || response.statusCode == 204)) {
return cb(error, data, json, response)
}
from cli.
Additional info in semantic-release/semantic-release#300
from cli.
Reading the related issue, it seems that semantic-release supports publishing by setting 'NPM_USERNAME', 'NPM_PASSWORD' and 'NPM_EMAIL'. Does that mean that the CLI should set these three env vars on the CI? If so:
- How should the CLI determine Artifactory NPM? I don't want to ask an extra question in all cases. Maybe an explicit command line switch?
- What should the CLI ask the user? username/password/email?
from cli.
How should the CLI determine Artifactory NPM? By URL?
Not sure it's possible as:
- Artifactory can be behind any URL
- Only the Artifactory version < 5.4 require
NPM_USERNAME
,NPM_PASSWORD
andNPM_EMAIL
. More recent version supportNPM_TOKEN
- There might be other npm compatible registry out there that require the legacy auth
What should the CLI ask the user? username/password/email?
I guess if the registry defined by the user on the first question is not the default npm one, the CLI should ask, something like "Does your registry require legacy auth?". If the user answer yes then yes we should ask the email in addition of the username and password that we already ask.
from cli.
? Select the authentication method for the selected npm registry:
> Token based
Legacy
from cli.
Related Issues (20)
- Error running semantic-release-cli setup , TypeError [ERR_INVALID_ARG_TYPE] HOT 2
- Cli setup failing with Github 2fa account HOT 2
- Github action is triggered twice
- [GitHub] Deprecation Notice HOT 8
- Why does GitHub token require `user:email` and `write:repo_hook` scope? HOT 1
- no access token supplied HOT 10
- ERR! 401 without further info (Travis-CI Pro) HOT 3
- ⚠️ Currently broken due to defunkt Basic Auth APIs HOT 5
- info.github.endpoint is undefined when running npx semantic-release-cli setup HOT 2
- Cannot use arrow keys to choose CI HOT 8
- Cannot setup/init on git-submodule-repo because of non-existent .git/config HOT 2
- xsel: Can't open display: (null)\n: Inappropriate ioctl for device HOT 2
- package-lock.json is not updated HOT 2
- npx semantic-release-cli setup HOT 1
- github actions example uses node version 12 HOT 1
- How to use with NX Monorepo HOT 2
- Error: GitHub repository URL is invalid: https:undefined.git
- semantic-release-cli setup could not get repository url HOT 1
- Babel issue when running npx semantic-release-cli setup HOT 1
- Basic Auth error when trying to attempt a dry-run
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.