zl程序教程

您现在的位置是:首页 >  其他

当前栏目

idea - fatal: could not read Username for ‘https://gitee.com‘: No such device or address

2023-04-18 13:05:34 时间

导读

  • 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就可以了。