DEV Community

loading...

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

Obinna Johnson
Am a fullstack developer and DevOps Engineer, That Loves doing things the right way.
・1 min read

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

Discussion (12)

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
ashishpandagre profile image
Ashish Pandagre

Thanks a lot man, it worked for me too.

Collapse
vhenckel profile image
Vitor Henckel

This worked for me too. Thanks!

Collapse
manoelcamillo profile image
Manoel Camillo

This worked for me too. Thanks!

Collapse
gustavozapata profile image
Gustavo Zapata

This worked for me. Thanks!

Collapse
lailahgrant profile image
lailahgrant

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 : stackoverflow.com/questions/152408...

Thanks

Collapse
iamwebwiz profile image
Ezekiel Oladejo

Thanks a lot. This worked for me! 👍🏾

Collapse
obynonwane profile image
Obinna Johnson Author

You Welcome

Collapse
judlup profile image
JudLup Luna

Thank you! :)

Collapse
snehanitdgp profile image
Sneha Chattopadhyay

Worked for me. Thanks!

Collapse
sidcodegithub profile image
repala_sudhamsh

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

thanks for the suggestion

Collapse
pytoncraft2 profile image
pytoncraft2

Thank you ! <3