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

ERR! 401 without further info (Travis-CI Pro) #348

Open
rslemos opened this issue Oct 18, 2020 · 3 comments
Open

ERR! 401 without further info (Travis-CI Pro) #348

rslemos opened this issue Oct 18, 2020 · 3 comments

Comments

@rslemos
Copy link

rslemos commented Oct 18, 2020

$ semantic-release-cli setup
? What is your npm registry? https://registry.npmjs.org/
? What is your npm username? rslemos
? What is your npm password? [hidden]
? What is your GitHub username? rslemos
? What is your GitHub password? [hidden]
? What CI are you using? Travis CI Pro
ERR! semantic-release 401

How do I get more information to debug this issue?

Perhaps 401 is most probably HTTP 401, Unauthorized. But which site gives 401?

@rslemos
Copy link
Author

rslemos commented Oct 18, 2020

After npm config set loglevel silly,

$ semantic-release-cli setup
verb semantic-release Detected git url: https://github.com/rslemos/http-load.git
? What is your npm registry? https://registry.npmjs.org/
? What is your npm username? rslemos
? What is your npm password? [hidden]
npm verb login before first PUT {
npm verb login   _id: 'org.couchdb.user:rslemos',
npm verb login   name: 'rslemos',
npm verb login   password: 'XXXXX',
npm verb login   type: 'user',
npm verb login   roles: [],
npm verb login   date: '2020-10-18T16:20:03.114Z'
npm verb login }
info semantic-release Successfully created npm token. [redacted]
? What is your GitHub username? rslemos
? What is your GitHub password? [hidden]
info semantic-release Successfully created GitHub token.
? What CI are you using? Travis CI Pro
info semantic-release Could not load Travis CI config for endpoint.
ERR! semantic-release 401
verb semantic-release Writing `package.json`.
info semantic-release Done.

How can I get further info about this error?

@exbotanical
Copy link

exbotanical commented Nov 23, 2020

I experienced this exact issue last night. You'll need to run semantic-release, not semantic-release-cli setup. Grab the package and pass your tokens via the CLI options.

Note: This method won't prompt you with a CI option (it didn't for me, anyway); you'll need to:

  1. Write (or copy over) your own Travis yaml config
  2. Enable your repo on Travis
  3. Add any necessary token variables (e.g. NPM email and token) to said repo/build on Travis before you trigger a build

How do I get more information to debug this issue?

https://github.com/semantic-release/cli/blob/master/src/lib/travis.js#L84

@gr2m
Copy link
Member

gr2m commented Nov 23, 2020

pretty user it's the same problem as described at #351

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

No branches or pull requests

3 participants