导读

  • 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

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐