RPC Failed result 22 http code 404

情到浓时终转凉″ 提交于 2019-11-29 09:36:45

Based in http://gisgeek.blogspot.com/2012/03/bonobo-git-server-remote-end-hung-up.html.

This is the solution

Solution: Modify the web.config file in the root of Bonobo.Git.Server (C:\initpub\wwwroot\Bonobo.Git.Server\Web.config) and up the limits on the following lines:

<system.web>
   <httpRuntime maxRequestLength="102400" /> 


<security>
   <requestFiltering>
     <requestLimits maxAllowedContentLength="102400" /> 

In both cases "102400" was replaced with "999999999" and the push worked!

I just modified my file and commit the code again, everything was working fine.

I had this issue while trying to clone from a source repo on Google Cloud using the gcloud SDK tool with Anaconda3:

fatal: The remote end fhung up unexpectedly
atal: early EOF
fatal: unpack-objects failed
ERROR: (gcloud.source.repos.clone) Command '[u'git', u'clone', u'https://source.developers.google.com/p/propane-highway-202915/r/arise-ds-program', u'C:\\WINDOWS\\system32\\arise-ds-program', u'--config', u'credential.helper=', u'--config', u'credential.helper=!gcloud.cmd auth git-helper --account=steve.deve89@gmail.com --ignore-unknown $@']' returned non-zero exit status 128

Fortunately, I was able to solve this by switching to the disabling Windows Defender Firewall (including other anti-virus software) and switching to a base environment in conda.

PS: The environment I got this issue earlier was a conda py 2.7 environment (while the base env was conda py 3.x), so it might be as a result of permissions (0n Windows), or incompatibility issues.

I have met a similar error when I try to push my local git repo to gitlab. The complete error message is:

Counting objects: 3, done.
Delta compression using up to 64 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 288 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
error: RPC failed; result=22, HTTP code = 404
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

I solved this issue by following this answer. Specifically, I add a .git after the remote repo URL:

# add .git suffix to the ORIGINAL_URL
git remote set-url origin ORIGINAL_URL.git

After that, I can push to remote gitlab repo successfully.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!