欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

IDEA中Push到Gitee报:Invocation failed Server returned invalid Response. java.lang.RuntimeException:调用

最编程 2024-03-14 14:12:40
...

一、前言

我们在学习和记录一些自己的练手项目时,一般使用远程仓库来进行存储,以防电脑坏了,自己辛辛苦苦敲的代码都没了!小编也是在最近使用IDEA提交代码到我的Gitee仓库发现提交不上去,直接==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: [31m[session-8d4acba1] [31mUnauthorized[0m[0m Authentication 
failed for 'https://gitee.com/wang-zhe****/g****l.git/'

三、解决方案

1. 打开设置

2. 输入gitee搜索,发现==push失败原因(登录过期)==

3. 重新登录

4. 登录成功

5.重新PUSH成功

四、总结

这样就解决了push失败的情况,开始还把电脑和IDEA重启了,想想有点傻了,有没有和我一样的!


Q.E.D.