DEV Community

Obinna Johnson
Obinna Johnson

Posted on

error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)

So I was having an error trying to push my project to GITLAB
(Error reproduced below)

$ git push -u origin master
Enumerating objects: 113, done.
Counting objects: 100% (113/113), done.
Delta compression using up to 8 threads
Compressing objects: 100% (95/95), done.
Writing objects: 100% (113/113), 58.19 KiB | 1.02 MiB/s, done.
Total 113 (delta 11), reused 0 (delta 0)
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

HOW I FIXED IT - copy paste the below command
git config --global http.postBuffer 157286400

I made use of the above git command
What It does is that it Increase the Git buffer size to the largest individual file size of your repo

source: https://confluence.atlassian.com/bitbucketserverkb/git-push-fails-fatal-the-remote-end-hung-up-unexpectedly-779171796.html

Oldest comments (13)

Collapse
 
iamwebwiz profile image
Ezekiel Oladejo

Thanks a lot. This worked for me! 👍🏾

Collapse
 
obynonwane profile image
Obinna Johnson

You Welcome

Collapse
 
judlup profile image
Judlup Luna

Thank you! :)

Collapse
 
pytoncraft2 profile image
pytoncraft2

Thank you ! <3

Collapse
 
costonied profile image
Igor Savin

It's was not worked for me. But worked downgrade version of HTTP from 2 to 1.1:
$ git config --global http.version HTTP/1.1
After it push was ok and I have changed HTTP version to 2 again:
$ git config --global http.version HTTP/2

Collapse
 
gustavozapata profile image
Gustavo Zapata

This worked for me. Thanks!

Collapse
 
manoelcamillo profile image
Manoel Camillo

This worked for me too. Thanks!

Collapse
 
vhenckel profile image
Vitor Henckel

This worked for me too. Thanks!

Collapse
 
asher_not_found profile image
asher

Thanks a lot man, it worked for me too.

Collapse
 
mmhgarcia profile image
Alberto G

It did not work for me neither.

Collapse
 
repsick3r profile image
repsick3r

degrading the http.version is the only practical way i found

thanks for the suggestion

Collapse
 
snehanitdgp profile image
Sneha Chattopadhyay

Worked for me. Thanks!

Collapse
 
lailahgrant profile image
Kemigisa Lailah Grant

Thanks for the post.
Meanwhile the above solution didn't work for me but rather found another solution...

git config --global http.postBuffer 100000000

Reference : https://stackoverflow.com/questions/15240815/git-fatal-the-remote-end-hung-up-unexpectedly?page=1&tab=votes#tab-top

Thanks