Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git bash: error: RPC failed; result = 18, HTP code = 200B | 1KiB/s

Tags:

git

clone

When I try to clone on git bash, I receive this error:

$git clone <link>
Cloning into 'name_project'...
Password for '<link>':
remote: Counting objects: 100% (659/659), done.
error: RPC failed; result=18, HTTP code = 200B | 1 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: recursion detected in die handler

This is the command used:

git clone h(double t)ps://[email protected]/path.git

Can anyone help?

like image 575
Innet Avatar asked Jul 16 '13 17:07

Innet


2 Answers

Solution for failed with error: RPC failed; result=18, HTTP code = 200

First Solution:

Try running the command below in the remote repository if error is fatal: index-pack failed

git repack -a -f -d --window=250 --depth=250

Second Solution:

Also try the below ones from the remote repository location if the above one didn't work:

git gc --aggressive

git repack -a -f -d --window=250 --depth=250

Third Solution:

Try reducing the postBuffer size in the remote repository config. Follow the steps below

  1. Go to remote git repository directory
  2. Run the following command to reduce the size of postBuffer

    git config http.postBuffer 24288000

  3. you can check this value by doing "git config --get http.postBuffer"
  4. Try cloning the repository now (back to where are you cloning)
  5. If failed with error: RPC failed; result=18, HTTP code = 200 try again by incresing the postBuffer ever further in the config. go to step 1.
like image 99
Ravi Rajendra Avatar answered Oct 06 '22 01:10

Ravi Rajendra


Hey I had same issue but resolved from link i mentioned below

https://confluence.atlassian.com/pages/viewpage.action?pageId=301663284

EDIT:

** From Website: **

Workaround:

While we have server site settings set appropriately for this option, you may need to adjust/override your client's settings. To do this, execute the following command(s):

From within a specific repository. Note the number at the end is the size, in bytes that you wish to allow in a single post. If you have much larger files, you may need to increase this number.

git config http.postBuffer 524288000

To set this gloablly for all remote Git repositories you ever connect to

git config --global http.postBuffer 524288000

I'm not quite sure that it'll work for everyone, but this solved my problem

like image 44
Srinivas Avatar answered Oct 06 '22 01:10

Srinivas