Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【20170220】BAE GIT RPC failed; result=22, HTTP code = 411 #75

Closed
zhongxia245 opened this issue Feb 20, 2017 · 0 comments
Closed

【20170220】BAE GIT RPC failed; result=22, HTTP code = 411 #75

zhongxia245 opened this issue Feb 20, 2017 · 0 comments
Labels

Comments

@zhongxia245
Copy link
Owner

时间:2017-02-20 11:03:04
作者:转载

一、错误:RPC failed; result=22, HTTP code = 411

git push
Counting objects: 147, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (146/146), done.
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
Writing objects: 100% (147/147), 3.21 MiB | 0 bytes/s, done.
Total 147 (delta 16), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date

二、解决方案

git config --global http.postBuffer 52428800

或者这样配置

三、出现原因

BAE Git 仓库默认只需要上传最大的文件为1MB,通过修改postBuffer来修改上传文件的最大值,这里我们设置为524288000,即最大可以上传500MB的文件。
重新提交一次就好了。

四、参考文章

  1. BAE Git error: RPC failed; result=22, HTTP code = 411解决办法
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant