其他分享
首页 > 其他分享> > Jetbrains IDE无法push

Jetbrains IDE无法push

作者:互联网

问题描述

Jetbrains IDE中可以进行git的add、commit操作,但是无法push,提示错误如下:

Push failed Invocation failed Server returned invalid Response. 
java.lang.RuntimeException: Invocation failed Server returned invalid Response. 
at org.jetbrains.git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:22) 
at org.jetbrains.git4idea.http.GitAskPassApp.main(GitAskPassApp.java:56) 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.GitAppUtil.sendXmlRequest(GitAppUtil.java:19) 
... 1 more unable to read askpass response from 
'C:\Users\focksor\AppData\Local\JetBrains\CLion2020.2\tmp\intellij-git-askpass-local.sh' 
bash: /dev/tty: No such device or address failed to execute prompt script (exit code 1) could not read Username for 'https://gitee.com': No such file or directory

与此同时,使用终端执行git push操作是不会有任何问题的。

解决方法

点击IDE内的File->Settings->Version Control->Gitee,如果你使用的是Github,最后一步应点击Github选项卡。这时,你可以看见右侧显示登录凭证已过期,需要重新登录,如下图所示。

image-20200810155028597

登录成功后,该界面应如下图所示。完成后,就可以正常执行git操作了。

image-20200810155233208

提示

如果你同样遇到该问题并通过此贴解决了问题,你可以留下你的评论来提示后来人该方法是可行的。

标签:execute,java,xmlrpc,apache,XmlRpcClient,push,org,IDE,Jetbrains
来源: https://www.cnblogs.com/focksor/p/13470209.html