RPC failed; curl 56 SSLRead() return error -9806 MiB/s

13.6k Views Asked by At

I am trying to install my cocoa pods.
After doing everything and installing it i got the error :

[!] Unable to add a source with url [email protected]:CocoaPods/Specs.git named master-1 

And to fix that error I tried:

 cd ~/.cocoapods/repos
 git clone https://github.com/CocoaPods/Specs.git master

Then I get this error which I don't know how to deal with:

remote: Counting objects: 854549, done.
remote: Compressing objects: 100% (3453/3453), done.
error: RPC failed; curl 56 SSLRead() return error -9806 MiB/s   
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
3

There are 3 best solutions below

2
VonC On

The git clone is indeed what issue 4293 recommends.

But if the clone fails with a "RPC failed; result=56" error message, check your git buffer:

git config --global http.postBuffer 2M

Then try again your git clone.

If not, investigate with:

GIT_CURL_VERBOSE=1 git clone https://github.com/CocoaPods/Specs.git

Finally, if https does not want to cooperate, try the ssh url:

cd  ~/.cocoapods/repos 
git clone [email protected]:CocoaPods/Specs.git
0
Bibin KJ On

Continuously try 3 times pod setup first and second time it fails. third time it works. Even if the third time fails run again it and continuously open a webpage or stream online videos, this will works. i have tested two times, one in 10.12sieraa

1
capysara On

I got the same error message. In my case I resolved it by changing to http.

git clone https://github.com/CocoaPods/Specs.git master