7

Git push 推送异常 : "Authentication failed for" - 阿航的技术小站

 3 years ago
source link: https://www.bugcatt.com/archives/1478
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

阿航

2020年5月23日

175

Git push 推送异常 : “Authentication failed for”

今天依旧是贡献代码的一天. 但是在使用IDEA进行Git 推送时, 右下角提示推送失败(Push failed). 就很纳闷, 平时好好的, 今天突然就不好使了? 一番折腾, 终于解决.

先来看一下完整报错:

Invocation failed Server returned invalid Response. java.lang.RuntimeException:
Invocation failed Server returned invalid Response.
  at org.jetbrains.git4idea.http.GitAskPassXmlRpcClient.askUsername(GitAskPassXmlRpcClient.java:50)
  at org.jetbrains.git4idea.http.GitAskPassApp.main(GitAskPassApp.java:64) Caused by: java.io.IOException: Server returned invalid Response.
  at org.apache.xmlrpc.LiteXmlRpcTransport.sendRequest(LiteXmlRpcTransport.java:242)
  at org.apache.xmlrpc.LiteXmlRpcTransport.sendXmlRpc(LiteXmlRpcTransport.java:90)
  at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
  at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
  at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)
  at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)
  at org.jetbrains.git4idea.http.GitAskPassXmlRpcClient.askUsername(GitAskPassXmlRpcClient.java:47)
... 1 more remote: No anonymous write access.
Authentication failed for 'https://github.com/XXX'

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK