当前位置: 代码迷 >> 综合 >> IDEA中Push到Gitee报:Invocation failed Server returned invalid Response. java.lang.RuntimeException: Inv
  详细解决方案

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

热度:4   发布时间:2023-11-23 20:26:18.0

一、前言

我们在学习和记录一些自己的练手项目时,一般使用远程仓库来进行存储,以防电脑坏了,自己辛辛苦苦敲的代码都没了!小编也是在最近使用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重启了,想想有点傻了,有没有和我一样的!


推广自己网站时间到了!!!

点击访问!欢迎访问,里面也是有很多好的文章哦!

  相关解决方案