Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git clone error error: RPC failed; curl 92 HTTP/2 stream 7 was not closed cleanly before end of the underlying stream [duplicate]

I keep receiving this error each time I try to clone a new repository, the second time I clone it, it works fine. What could be the cause of it and how to resolve it?

Cloning into 'Important-Documents'...
remote: Enumerating objects: 83, done.
remote: Counting objects: 100% (83/83), done.
remote: Compressing objects: 100% (81/81), done.
error: RPC failed; curl 92 HTTP/2 stream 7 was not closed cleanly before end of the underlying stream
error: 4241 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
like image 739
Laveen Ren Avatar asked Dec 05 '25 15:12

Laveen Ren


2 Answers

I encounter this error too: So I clone the repo in parts using the command below:

  1. Enter this command in the terminal or powershell git clone --depth 1 <repo url>
  2. when the step 1 is done, change your directory to the and
  3. Enter this command git fetch --unshallow

If the still persist I'd advice you to turn-off your anti-virus and try the step again.

like image 179
snetwork2020 Avatar answered Dec 07 '25 08:12

snetwork2020


If you are still facing this problem using a VPN would help..

like image 42
NETFLEXX joseph Avatar answered Dec 07 '25 08:12

NETFLEXX joseph



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!