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.

Fails on "Invalid username or password" for git push permissions

See original GitHub issue

Hi,

Seeing an error about semantic-release not able to push to github, even though the build has a GITHUB_TOKEN env var.

[semantic-release] › ✖  The command "git push --dry-run https://[secure]@www.github.com/lirantal/opn-shell.git HEAD:master" failed with the error message remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/lirantal/opn-shell.git/'

Travis build: https://travis-ci.org/lirantal/opn-shell/jobs/483803564

What should I be looking into?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
pvdlgcommented, Jan 24, 2019

There is already a quite detailed message produced by semantic-release: https://travis-ci.org/lirantal/opn-shell/jobs/483803564#L569

I don’t think catching the specific case of additional www in github URL is such a good idea. If we start handling this type of configuration errors that open the door to handle an infinite number of them. Answering the many support ticket we have, I can say that people are really creative in terms of finding way to improperly configure a URL…

And some people having trouble to admit they made a mistake would often answer with things like “It’s not my fault if didn’t read the doc, or read the logs, or tried to debug. It’s your software having a bad user experience”. And they would ask for adding a very specific error handling for the very specific misconfiguration they did.

Generally I would be favorable to do a lot to make a software more accessible and to reduce friction. But as semantic-release is primarily meant to be used by developers and people with at least a bit of Git experience, I don’t think we shouldn’t bend backward to handle every possible case of wrong repo URL.

We are already doing a lot in terms user feedback regarding misconfiguration:

0reactions
gr2mcommented, Jan 24, 2019

The repo URL having a www prefix

Maybe that is something we can catch with semantic-release? What do you think @pvdlg?

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub: invalid username or password - Stack Overflow
Run Below command, and after than on every push and pull it will ask you to enter the username and password. · Control...
Read more >
fix github error : username or email or password is invalid ...
I faced this error after I changed the github account password, and I wanted to push some changes to github via git push....
Read more >
Git remote: invalid username or password Solution
The “remote: invalid username or password” error informs you that you have incorrectly authenticated to a Git server. To solve this error, make ......
Read more >
remote: Invalid username or password. Git Push. - My CMS
I was prompted to insert my Github username and password, but it didn't work!! This was the error I got: $ git Push...
Read more >
Why am I not prompted for password when pushing or pulling ...
Cause. The most likely reason for this is that Git has been configured to use a credential helper. The configuration could have been...
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