idea git克隆失败 Invocation failed Server returned invalid Response

本文解析了Java中出现的'Invocationfailed Server returned invalid Response'错误,重点介绍了通过在克隆URL中包含用户名和密码来解决Git访问问题的方法,以及如何正确构造URL。
摘要由CSDN通过智能技术生成

Invocation failed Server returned invalid Response.
java.lang.RuntimeException: Invocation failed Server returned invalid Response.
at git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:22)
at 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 git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:19)
… 1 more
error: unable to read askpass response from ‘C:\Users\admin\AppData\Local\JetBrains\IntelliJIdea2021.2\tmp\intellij-git-askpass-local.sh’
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)

解决办法:
克隆时把用户名及密码加上,密码中不要包含@符号
url = http://[用户名]:[密码]@git路径

http://yonghuming:mima@192.168.11.100:8899/testProject/test.git

在配置IDEAGit时,可能会遇到一些问题。其中一个常见的问题是配置Git时出现身份验证失败的情况。这通常是因为您尚未设置Git的用户信息。解决此问题的方法是按照以下步骤操作: 1. 打开终端或命令提示符。 2. 在终端或命令提示符中运行以下命令:git config --global user.email "you@example.com"和git config --global user.name "Your Name"。将"you@example.com"替换为您的电子邮件地址,"Your Name"替换为您的姓名。 3. 重新配置Git并检查是否成功。 请注意,如果您只想在当前仓库中设置身份验证信息,可以省略--global参数,只在特定的仓库中设置。 希望这个解决方案能够帮助您成功配置IDEAGit。如果您还有其他问题,请随时向我提问。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [IntelliJ IDEA 配置git详细步骤](https://blog.csdn.net/qq_39463175/article/details/125703971)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [IntelliJ:idea Git提交失败,有错误](https://blog.csdn.net/wimpykids/article/details/131205517)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值