LoginSignup
5
5

More than 5 years have passed since last update.

error: RPC failed; result=22, HTTP code = 501

Posted at

よく自分でGitBucketにpushするときに起こるエラー
正直よくわからないんだけど,pushできる容量が足りてないっぽい

エラー

error: RPC failed; result=22, HTTP code = 501
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

解決

ググってきたらでてきたページによると,

git config http.postBuffer 524288000

とりあえずこうすると治る

.git/config
・
・
・
・
・
[http]
        postBuffer = 524288000

確認したらpostBufferの記述が追加されてた.

実際にpushしたらちゃんとpushされた

計算方法

指定したいByte数[MByte] * 1024 * 1024

指定したいMbyte
1 1*1024*1024 1048576
50 50*1024*1024 54288000
500 500*1024*1024 524288000

捕捉

解決しちゃったから試してないけど

.git/config
[http]
        postBuffer = 500M

でもできるかも?

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5