git - 致命 : The remote end hung up unexpectedly libcurl result = 7

标签 git tfs libcurl

我已经尝试了 Stackoverflow 上的几乎所有答案,这就是我所看到的

Counting objects: 134, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (73/73), done.
Writing objects: 100% (79/79), 208.38 KiB | 0 bytes/s, done.
Total 79 (delta 37), reused 1 (delta 0)
efrror: RPC failed; result=7, HTTP code = 401
atal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

重要提示:我正在使用 TFS Git 服务器(也许这是我的问题,哈哈)

我尝试过的事情:

  • 使用 git remote -v 确保 url 正确(是的,一切都已检查)
  • 将全局 http.postBuffer 增加到 524288000

关于错误消息的有趣之处:RPC 失败; result=7 在堆栈溢出的大多数情况下很有趣,结果要么在 50 年代,要么在 20 年代,我认为错误来自 libcurl。如果是这种情况,那么我将从 TFS 获得 CURLE_COULDNT_CONNECT (7),我不知道为什么。还有其他人遇到过这个错误吗?或者知道解决我遇到的问题的方法吗?

Curl 的错误代码在这里 http://curl.haxx.se/libcurl/c/libcurl-errors.html

最佳答案

我不认为它来自 libcurl。因为……

HTTP code = 401

... 表示 libcurl 收到了 HTTP 响应,响应代码为 401。401 表示您未通过身份验证无法访问该资源。错误的用户名或密码或类似信息。

关于git - 致命 : The remote end hung up unexpectedly libcurl result = 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30921723/

相关文章:

git 子模块 merge 冲突 : how to visualize?

svn - 带有svn界面的git?

tfs - 如何在TFS中查看本地工作副本的变化?

Azure网站持续部署总是选择错误的项目

PHP Curl 进度条(回调返回百分比)

linux - 如何使用 git-archive 获得 GNU tar 的 --strip-components 的效果?

git - 为什么 Git Merge 不自动生成提交和提交消息?

.net-core - Azure Devops 发布到自己的 feed 突然导致 403 禁止

http - CURLOPT_HTTPPOST 和 CURLOPT_POSTFIELDS 之间的区别

c++ - 为#define 使用变量