GitLab Invocation failed Server returned invalid Response
今天上班想push
和update
一下完成的代码到gitlab
上,突然提示:
Update failed
Invocation failed Server returned invalid Response.
java.lang.RuntimeException: Invocation failed Server returned invalid Response.
at git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:22)
at 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 git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:19)
... 1 more
unable to read askpass response from 'C:\Users\w\AppData\Local\JetBrains\IntelliJIdea2021.2\tmp\inte... (show balloon)
快乐突然一下子就没了。可恶!
服务器无响应?我检查了一下gitlab
代码仓库服务器是没有问题的,然后更新了一下idea
的git
账号再重新尝试。还是一样的结果。
解决方案:
凭感觉是gitlab
账号导致的一个问题,于是我便去项目的根目录下找到.git
隐藏文件点击进入,右键编辑config
文件配置gitlab
账号密码到remote "origin"下的url上
[remote "origin"]
url = http://gitlab账号:gitlab密码@代码仓库地址:端口/jiwei/tuan.git
重新尝试push以及update操作完美解决。
评论区