Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

fatal: Authentication failed #907

Open
1 task done
drom opened this issue Oct 14, 2020 · 1 comment
Open
1 task done

fatal: Authentication failed #907

drom opened this issue Oct 14, 2020 · 1 comment

Comments

@drom
Copy link

drom commented Oct 14, 2020

Prerequisites

Description

I am trying to publish a new version of my package atom-hide and getting this error:

drom@linux-sydi:~/work/github/drom/atom-hide> apm publish 0.7.22
Preparing and tagging a new version ✓
Pushing v0.7.22 tag ✗
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/drom/atom-hide/'

Steps to Reproduce

  1. apm login
  2. apm publish 0.7.22

Expected behavior:

Expected publish to work.

Actual behavior:

publish doesn't work

Reproduces how often:

For the last 14 times I have tried today.

Versions

drom@linux-sydi:~/work/github/drom/atom-hide> apm --version
apm  2.5.2
npm  6.14.8
node 12.4.0 x64
atom 1.52.0
python 2.7.18
git 2.28.0
drom@linux-sydi:~/work/github/drom/atom-hide> uname -a
Linux linux-sydi 5.8.14-1-default #1 SMP Wed Oct 7 06:23:04 UTC 2020 (cea47bb) x86_64 x86_64 x86_64 GNU/Linux

Additional Information

I have tried to login with atom.io and github.com tokens.

@vt5491
Copy link

vt5491 commented Mar 30, 2022

  1. Pretty much the same for me, when I tried from windows:
vturner2@LAPTOP-F0QM306P MINGW64 ~/.atom/dev/packages/multi-theme-applicator (master)

$ apm publish patch
Preparing and tagging a new version done
Pushing v2.3.2 tag failed
fatal: HttpRequestException encountered.
   An error occurred while sending the request.

Unhandled Exception: System.ObjectDisposedException: Cannot access a closed file.
   at System.IO.__Error.FileNotOpen()
   at System.IO.FileStream.Flush(Boolean flushToDisk)
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at Microsoft.Alm.Git.Trace.Microsoft.Alm.Git.ITrace.Flush()
   at Microsoft.Alm.Cli.Program.Die(String message)
   at Microsoft.Alm.Cli.Program.Die(Exception exception)
   at Microsoft.Alm.Cli.Program.Main(String[] args)
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/vt5491/multi-theme-applicator/'

$ apm --version
apm  2.6.2
npm  6.14.13
node 12.14.1 x64
atom 1.60.0
python 2.7
git 2.12.1.windows.1
visual studio 2017
  1. Fortunately, I was able to get it to work from a linux VM:
vturner@vturner-virtual-machine ~/vtstuff/github/multi-theme-applicator $ apm publish patch
Preparing and tagging a new version ✓
Pushing v2.2.5 tag Username for 'https://github.com': vt5491
Password for 'https://[email protected]': 

vturner@vturner-virtual-machine ~/vtstuff/github/multi-theme-applicator/lib $ apm --version
apm  2.4.3
npm  6.2.0
node 10.2.1 x64
atom 1.40.1
python 2.7.12
git 2.7.4

for password I specified a 30-day "personal access token" that I generated on github, which looked something like:

ghp_FT0ogVuU7YgySVwekSWqCyOvD.........

which was I token I granted all privileges to. Don't know if granting all repo privileges is strictly necessary though. Don't use the token that is given to you when you use 'apm login'.

  1. use "git reset HEAD~n" if you need to delete any local publish commits that failed.

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

No branches or pull requests

2 participants