Git: error: RPC failed; result=22, HTTP code = 411

GitGithubRuntime Error

Git Problem Overview


Symptoms:

Git suddenly refused to push a repository (to github in my case):

$ git push
Counting objects: 9292, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2136/2136), done.
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
Writing objects: 100% (8222/8222), 1.27 MiB | 837 KiB/s, done.
Total 8222 (delta 6060), reused 8181 (delta 6033)
fatal: The remote end hung up unexpectedly
Everything up-to-date

Git Solutions


Solution 1 - Git

Here is what helped, the following command increases git buffer to 500mb:

git config http.postBuffer 524288000

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionfiredevView Question on Stackoverflow
Solution 1 - GitfiredevView Answer on Stackoverflow