Missing or invalid credentials--never asked by the terminal for credentials
-
I'm never asked for credentials and keep getting this error when trying to push:
git push page master Missing or invalid credentials. Error: socket hang up at connResetException (internal/errors.js:610:14) at Socket.socketOnEnd (_http_client.js:453:23) at Socket.emit (events.js:327:22) at endReadableNT (_stream_readable.js:1220:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) { code: 'ECONNRESET' } Missing or invalid credentials. Error: socket hang up at connResetException (internal/errors.js:610:14) at Socket.socketOnEnd (_http_client.js:453:23) at Socket.emit (events.js:327:22) at endReadableNT (_stream_readable.js:1220:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) { code: 'ECONNRESET' } remote: Unauthorized fatal: Authentication failed for 'https://....com/_git/page/'
-
@jordanurbs there was bug in the package, can you check if you updated to the latest release that @nebulon pushed out earlier today? It should be 1.14.2
-
@jordanurbs I tried a fresh install and it seems to work. Do you have happen to have anything in your
~/.netrc
? You can also check ifgit config -l
has anycredential.helper
set (I think if you are on a Mac, it stores it in the keychain?) -
I have git 2.25.1, I could do
git -c credential.helper= push page master
to force password query. -
@girish said in Missing or invalid credentials--never asked by the terminal for credentials:
git -c credential.helper= push page master
This solved it. Thank you @girish.
Problem is, now I get this error after successful authentication:
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1) fatal: the remote end hung up unexpectedly fatal: the remote end hung up unexpectedly
I've been receiving timeouts trying to set up a gitlab repo as well. Is this maybe a firewall issue on my server's end?
-
@jordanurbs @girish fixed, had to run
git config --global http.version HTTP/1.1
and then switch back