Skip to content

git clone - error: RPC failed; curl 56 ...

If git clone command returns error type: RPC failed; curl 56 ...

It's probably a internet connection issue.

If you using an antivirus or firewall, can often fail to handle large streaming content.
If you using shared bandwidth, try to clone when load is less.
Otherwise, try with a high speed connection (45 kbit/s is too slow).

If still does not work, please use below commands:

git config --global http.postBuffer 2048M
git config --global http.maxRequestBuffer 1024M
git config --global core.compression 9

git config --global ssh.postBuffer 2048M
git config --global ssh.maxRequestBuffer 1024M

git config --global pack.windowMemory 256m 
git config --global pack.packSizeLimit 256m

git config --global http.version HTTP/1.1