all green

プログラム、アプリ作成、Web等備忘録が中心です

GitのClone時に発生したエラー「 RPC failed; curl 92 HTTP/2 stream 7 was not closed cleanly before end of the underlying stream」

Cloneした際に発生したエラーの対応

発生したエラー

error: RPC failed; curl 92 HTTP/2 stream 7 was not closed cleanly before end of the underlying stream
error: 17554 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

・環境
Windows10
Fork 1.71.00(https://fork.dev/
Git(2.33.1.windows.1)


HTTPのバージョンを確認してみる

Fork上からConsoleを立ちあげ

git config --global http.version

結果は空でした。

HTTPのバージョンを設定してClone

Console上で以下を実行

git config --global http.version HTTP/1.1

再度Cloneしなおしてみると成功しました。


参考サイト
Fix error : RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1) · GitHub