如何修复此错误:RPC 失败;curl 56 接收失败:连接已重置

Bry*_*ith 3 git github substrate

我运行了以下命令,但已显示此消息。我该如何修复它?

E:\Workspace\Blockchain>git clone https://github.com/substrate-developer-hub/substrate-node-template
Cloning into 'substrate-node-template'...
remote: Enumerating objects: 2185, done.
remote: Counting objects: 100% (91/91), done.
remote: Compressing objects: 100% (54/54), done.
error: RPC failed; curl 56 Recv failure: Connection was reset
error: 2269 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

Run Code Online (Sandbox Code Playgroud)

我不知道如何解决它。

请帮我。谢谢。

小智 15

  • 将http.version设置为HTTP/1.1,然后执行git推送。

  • 稍后恢复到 HTTP/2。

    git config --global http.version HTTP/1.1

    git config --global http.version HTTP/2