简体   繁体   English

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

I am suddenly having an unexpected error while trying to push in Git.我在尝试推入 Git 时突然遇到意外错误。 Previously I was able to push, but now I`m receiving the following error:以前我可以推送,但现在我收到以下错误:

error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

I have tried the following, but the error still remains:我尝试了以下方法,但错误仍然存在:

1- Increasing the Buffer size ( git error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Proxy Error ) 2- Creating a new repo 3- Reinstalling my local Git 1- Increasing the Buffer size ( git error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Proxy Error ) 2- Creating a new repo 3- Reinstalling my local Git

Could you please give me any suggestions你能给我任何建议吗

This message means that some server between you and the ultimate destination server somewhere in Azure got an invalid response, timed out, or encountered an error.此消息表示您与 Azure 中某处的最终目标服务器之间的某个服务器收到无效响应、超时或遇到错误。 That server is generically referred to in HTTP as a proxy , but it could be a normal HTTP or SOCKS proxy on your network, antivirus or firewall software on your computer, or a frontend machine on Azure Kudu.该服务器在 HTTP 中通常称为代理,但它可能是网络上的普通 HTTP 或 SOCKS 代理、计算机上的防病毒或防火墙软件,或 Z3A580F142203677F5ZF0BC33 上的前端机器。

It may very well be that putting an 800 MB blob in your repository is the cause of this;很可能是在您的存储库中放入一个 800 MB 的 blob 是造成这种情况的原因; generally checking in large blobs into a Git repository is a bad idea, and such blobs should be stored in some object storage or artifact system.通常将大 blob 检入 Git 存储库是一个坏主意,此类 blob 应存储在某些 object 存储或工件系统中。 It may also be that it is totally unrelated to that: it could be a temporary Azure error or some software on your computer or network that is temporarily broken or has a bug.也可能与此完全无关:它可能是暂时的 Azure 错误或您的计算机或网络上的某些软件暂时损坏或有错误。 All we know from this response is that some machine in the middle encountered a problem.从这个响应中我们所知道的是,中间的某些机器遇到了问题。

You can try to strip out the large blob from your repository (including anywhere in the history) and see if that fixes it;您可以尝试从存储库(包括历史记录中的任何位置)中删除大 blob 并查看是否可以修复它; you should probably do that regardless.无论如何,您都应该这样做。 If it does not, you should try to run with GIT_TRACE=1 GIT_CURL_VERBOSE=1 GIT_TRACE_CURL=1 to see if you can extract the error message from the stream to try to figure out what machine is misbehaving and what the problem might be.如果没有,您应该尝试运行GIT_TRACE=1 GIT_CURL_VERBOSE=1 GIT_TRACE_CURL=1以查看是否可以从 stream 中提取错误消息,以尝试找出哪台机器行为不端以及问题可能是什么。

Finally, as a general rule, increasing the http.postBuffer size does not fix push problems.最后,作为一般规则,增加http.postBuffer大小并不能解决推送问题。 In order for that to work, you have to have a broken system that doesn't support HTTP/1.1 or doesn't support chunked transfer encoding properly.为了使其正常工作,您必须有一个不支持 HTTP/1.1 或不正确支持分块传输编码的损坏系统。 While such systems do exist, they are rare, and the best solution is to fix or replace them since they generally cause serious problems for any software using them.虽然确实存在这样的系统,但它们很少见,最好的解决方案是修复或替换它们,因为它们通常会给使用它们的任何软件造成严重问题。 Unless you know that you are using such a broken system, changing that setting will almost certainly not help.除非您知道您正在使用这样一个损坏的系统,否则更改该设置几乎肯定无济于事。

暂无
暂无

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

相关问题 git push 错误 - 致命:远程端意外挂断错误:RPC 失败; HTTP 401 curl 22 请求的 URL 返回错误:401 - git push error - fatal: the remote end hung up unexpectedly error: RPC failed; HTTP 401 curl 22 the requested URL returned error: 401 错误: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 Proxy Error - git error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Proxy Error GIT error: HTTP 999 curl 22 The requested URL returned error: 999 fatal: the remote end hung up unexpectedly 999 - GIT error: HTTP 999 curl 22 The requested URL returned error: 999 fatal: the remote end hung up unexpectedly 999 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 失败; curl 56 请求的 URL 返回错误:401:远程端意外挂断 - Git - error: RPC failed; curl 56 The requested URL returned error: 401: The remote end hung up unexpectedly Git 推送 RPC 失败; HTTP 502 curl 22 请求的 URL 返回错误:502 网关错误 - Git push RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway Git - 错误:RPC 失败; result=22, HTTP code = 401 fatal: 远端意外挂断 - Git - error: RPC failed; result=22, HTTP code = 401 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? 错误:RPC失败; 结果= 22,HTTP代码= 413致命:远端意外挂断 - error: RPC failed; result=22, HTTP code = 413 fatal: The remote end hung up unexpectedly
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM