错误:RPC 失败;curl 传输关闭,剩余未完成的读取数据 [英] error: RPC failed; curl transfer closed with outstanding read data remaining

查看:12
本文介绍了错误:RPC 失败;curl 传输关闭,剩余未完成的读取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试从 GitLab (GitLab 6.6.2 4ef8369) 克隆存储库时遇到此错误:

I'm facing this error when I try to clone a repository from GitLab (GitLab 6.6.2 4ef8369):

remote: Counting objects: 66352, done.
remote: Compressing objects: 100% (10417/10417), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

然后克隆被中止.我怎样才能避免这种情况?

The clone is then aborted. How can I avoid this?

推荐答案

过了几天,今天才解决了这个问题.生成 ssh 密钥,看这篇文章:

After few days, today I just resolved this problem. Generate ssh key, follow this article:

https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/

声明为

  1. Git 提供者(我正在使用的 GitLab,GitHub).
  2. 将此添加到本地身份.

然后通过命令克隆:

git clone username@mydomain.com:my_group/my_repository.git

并且没有发生错误.

以上问题

错误:RPC 失败;curl 18 传输因未完成的读取数据而关闭剩余

error: RPC failed; curl 18 transfer closed with outstanding read data remaining

因为HTTP协议克隆时出错(curl命令).

because have error when clone by HTTP protocol (curl command).

而且,您应该增加缓冲区大小:

And, you should increment buffer size:

git config --global http.postBuffer 524288000

这篇关于错误:RPC 失败;curl 传输关闭,剩余未完成的读取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆