linux,

[Git] fatal: The remote end hung up unexpectedly

Hangga Aji Sayekti Hangga Aji Sayekti Follow Dec 23, 2016 · 1 min read
[Git] fatal: The remote end hung up unexpectedly
Share this

Beberapa waktu lalu pernah mengalami hal ini, yaitu ketika membuat project baru kemudian push request.

error: RPC failed; result=55, HTTP code = 200
fatal: The remote end hung up unexpectedly
Writing objects: 100% (54/54), 13.45 MiB | 35.00 KiB/s, done.
Total 54 (delta 2), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly

Rupanya penyebabnya adalah berikut ini

The “Smart HTTP” protocol in Git uses “Transfer-Encoding: chunked” in POST requests when it contains packed objects greater than 1MB in size.
Some proxy servers, like Nginx, do not support this transfer encoding by default, and the requests will be rejected before they get to Stash. Because of this, the Stash logs will not show any extra information.

Sehingga kita harus mengubah ukuran http.postBuffer-nya

git config --global http.postBuffer 157286400

Sumber : https://confluence.atlassian.com/stashkb/git-push-fails-fatal-the-remote-end-hung-up-unexpectedly-282988530.html

Hangga Aji Sayekti
Written by Hangga Aji Sayekti
A passionate Software Engineer from Indonesia with experience since 2008. Bachelor's degree in Mathematics and loves Science and Computers.