简体   繁体   English

克隆到 git 存储库时“解码收到的 TLS 数据包时出错”

[英]"Error decoding the received TLS packet" when cloning into git repository

I am experiencing an error when trying to clone into the https://github.com/zulip/zulip.git repository.尝试克隆到https://github.com/zulip/zulip.git存储库时遇到错误。

As far as I have looked this question has not been answered yet.据我所知,这个问题还没有得到回答。

-I have tried raising the http/https buffer without success using: -我尝试使用以下方法提升 http/https 缓冲区但未成功:

git config --global http.postBuffer 524288000
git config --global https.postBuffer 524288000

-The error always occurs @53% arround 100MiB in. - 错误总是发生@53% arround 100MiB in。

Cloning into 'zulip'...
remote: Enumerating objects: 342136, done.
remote: Counting objects: 100% (1589/1589), done.
remote: Compressing objects: 100% (719/719), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): Error decoding the received TLS packet.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

EDIT: I have done a bit testing and I seem to be getting this error whenever I try to clone a very large repository.编辑:我做了一些测试,每当我尝试克隆一个非常大的存储库时,我似乎都会收到这个错误。
-I tried cloning the https://github.com/dagster-io/dagster repository and got the same error; -我尝试克隆https://github.com/dagster-io/dagster存储库并得到相同的错误;
-Then I tried with an old and very small repository of mine ( https://github.com/LFBianchi/RPyNCalc ) and it works like a charm; - 然后我尝试使用我的一个旧且非常小的存储库( https://github.com/LFBianchi/RPyNCalc ),它就像一个魅力;
-Just to be sure I forked the github.com/zulip/zulip.git and tried cloning it from my version and got the same exact error. - 只是为了确保我分叉了 github.com/zulip/zulip.git 并尝试从我的版本中克隆它并得到相同的确切错误。

This was solved by switching to SSH instead of HTTPS.通过切换到 SSH 而不是 HTTPS 解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM