github push失败
错误详情
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/fy-ken… (show balloon)
remote: No anonymous write access.
Authentication failed for 'https://github.com/fy-ken.
解决方案
- 经过查询发现github官方停用了用户密码方式,于是通过token,网上很多详细说明的例子。
大致位置Settings / Developer settings / Personal access tokens
,勾选 repo and gist就可以了。 - 但是配置了token之后,依然出现错误:Push failed: Unable to access ‘https://github.com/fy-kenny/utils.git/’: OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054。
- 后来我无意中发现仓库用户邮箱不对,重新配置了仓库的用户名和邮箱,再次push尽然成功了。
git config user.name “Your Name”
git config user.email “you@example.com” - 如果还不能解决就尝试下,
git config http.sslVerify “false”
或者
git config --global http.sslVerify “false” - 还有问题请检查下proxy配置是否正确,验证下repo的地址是否可以访问。