导读

  • idea在git push代码的时候,控台报错
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
error: unable to read askpass response from '/home/zhai/.cache/JetBrains/IntelliJIdea2020.2/tmp/intellij-git-askpass-local.sh'
fatal: could not read Username for 'https://gitee.com': No such device or address

解决办法

  • idea顶部导航栏 -> File -> Settings (快捷键:ctrl + alt + s)
  • 搜索gitee
    在这里插入图片描述
  • 重新登录一下gitee就可以了。
Logo

新一代开源开发者平台 GitCode,通过集成代码托管服务、代码仓库以及可信赖的开源组件库,让开发者可以在云端进行代码托管和开发。旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐