成功解決git clone遇到的error: RPC failed; curl 16 Error in the HTTP2 framing layer fatal: expected flush af
- 問題描述
- 解決方案
問題描述
用git的時候可能會遇到這個問題:
(base) zhouzikang@7443-8x4090-120:~/project$ git clone https://github.com/123/123.git
Cloning into ‘StyleSwap’…
error: RPC failed; curl 16 Error in the HTTP2 framing layer
fatal: expected flush after ref listing
如圖
解決方案
嘗試通過像這樣設置 git config 來強制 git 使用 HTTP 1.1
git config --global http.version HTTP/1.1
然后使用git操作
如果你想將其設置回 HTTP2,你可以這樣做
git config --global http.version HTTP/2
成功解決如圖:
順帶解決Git Clone遇到的:GnuTLS recv error (-110): The TLS connection was non-properly terminated.
apt-get install gnutls-bin
git config --global http.sslVerify false
git config --global http.postBuffer 1048576000