简体   繁体   English

git错误:RPC失败; HTTP 502 curl 22 请求的URL返回错误:502 Proxy Error

[英]git error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Proxy Error

I work with tortoise git for my actual project.我在我的实际项目中使用乌龟 git。 Me and the other members have some trouble since last week with our repository (worked perfect before).自上周以来,我和其他成员在使用我们的存储库(之前工作完美)时遇到了一些麻烦。

When I want to push/pull/clone (HTTPS), I get the following error:当我想要推/拉/克隆 (HTTPS) 时,出现以下错误:

fatal: The remote end hung up unexpectedly error: RPC failed;致命:远程端意外挂断错误:RPC失败; HTTP 502 curl 22 The requested URL returned error: 502 Proxy Error HTTP 502 curl 22 请求的URL返回错误:502 Proxy Error

Seems like something went wrong with the proxy server.似乎代理服务器出了点问题。 I can use the repository as usual in the local.network of my institute, but I get no access from home.我可以像往常一样在我研究所的 local.network 中使用存储库,但我无法从家里访问。

Does anyone has an idea how to fix this error?有谁知道如何解决此错误? Unfortunately i can't find any other posts about this problem.不幸的是我找不到关于这个问题的任何其他帖子。

Greetings, Homer问候,荷马

This kind of error happens mostly because of 2 reasons:发生这种错误主要有两个原因:

  1. pushing binary files/jar files to repo将二进制文件/jar 文件推送到 repo

  2. if the file(s) size is big.如果文件大小很大。

Solution:解决方案:
1. Use admin credential for pushing code change 1. 使用管理员凭据推送代码更改
2. execute the command git config --local http.postBuffer 157286400 before pushing. 2. git config --local http.postBuffer 157286400前执行命令git config --local http.postBuffer 157286400

The first step in troubleshooting this is to determine if you can import the entire repository without problems.解决此问题的第一步是确定您是否可以毫无问题地导入整个存储库。 If so, then any individual branch within the repository should not cause a problem.如果是这样,那么存储库中的任何单个分支都不会导致问题。 So rather than trying to "just clone a branch", can you do the following:因此,与其尝试“只是克隆一个分支”,不如执行以下操作:

  1. Clone the source repository locally在本地克隆源存储库
  2. Create a new repository on GitHub在 GitHub 上创建一个新的存储库
  3. Add the new repository as a remote for the local repository添加新仓库作为本地仓库的远程仓库
  4. Push the contents of the local repository to the new GitHub repository将本地仓库的内容推送到新的 GitHub 仓库

Try this:尝试这个:

  1. git remote remove origin git远程删除原点
  2. git remote add origin URL git 远程添加源 URL

I don't understand why the error appears but luckily this works for me, i hope that can help others, regards.我不明白为什么会出现错误,但幸运的是这对我有用,我希望可以帮助其他人,问候。

Updating http.postBuffer didn't work for me.更新 http.postBuffer 对我不起作用。 In my case, I had 17 files to push.就我而言,我有 17 个文件要推送。 So I have pushed 17 files in chunks.所以我分块推送了 17 个文件。 Like 4-5 files together.就像4-5个文件在一起。 It did solve my issue.它确实解决了我的问题。 Thanks @thesprinter for the hint.感谢@thesprinter 的提示。

I had the same issue, I undid my last commit via git resest then again commit the changes.我遇到了同样的问题,我通过git resest了我的最后一次提交,然后再次提交更改。 It resolved the problem.它解决了这个问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Git 推送错误:RPC 失败; HTTP 502 curl 22 请求的 URL 返回错误:502 - Git push error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Git 推送 RPC 失败; HTTP 502 curl 22 请求的 URL 返回错误:502 网关错误 - Git push RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway 错误:RPC 失败; HTTP 502 curl 22 请求的 URL 返回错误:502 错误网关致命 - error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway fatal git 错误:RPC 失败; HTTP 502 curl 22 请求的 URL 返回错误:502 致命:远端意外挂断 - git error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 fatal: the remote end hung up unexpectedly RPC失败; HTTP 502 curl 22请求的URL返回错误:502 Bad Gateway? - RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway? Git - Azure DevOps“错误:RPC失败; HTTP 413 curl 22 请求的 URL 返回错误:413” - Git - Azure DevOps “error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413” git push 挂起,错误:RPC 失败; HTTP 413 curl 22 请求的 URL 返回错误:413 - git push hangs, error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 git 推送错误:RPC 失败; HTTP 500 curl 22 请求的 URL 返回错误:500 - git push error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 Git 推送错误:RPC 失败; 结果 = 22,HTTP 代码 = 502 - Git push Error: RPC failed; result=22, HTTP code = 502 通过公司代理推送到 gitlab.com - 错误:RPC 失败; HTTP 403 curl 22 请求的 URL 返回错误:403 - Push to gitlab.com through company proxy - error: RPC failed; HTTP 403 curl 22 The requested URL returned error: 403
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM