Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 243
alibabaei12 Avatar asked Oct 09 '16 01:10

alibabaei12


1 Answers

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
like image 97
VonC Avatar answered Nov 06 '22 07:11

VonC