git push 错误:HTTP 请求失败:请求的 URL 返回 504
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14005505/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
git push error: HTTP request failed: The requested URL returned 504
提问by Murali Murugesan
I am getting the error git did not exit cleanly (exit code 128) in Tortoise Git while pushing my changes to master in GITHub
在将我的更改推送到 GITHub 中的 master 时,我在 Tortoise Git 中收到错误 git 没有干净地退出(退出代码 128)
git.exe push -v --progress "origin" master:master
Pushing to https://github.com/myproj/Net.git
error: The requested URL returned
error: 504 while accessing
https://github.com/myproj/Net.git/info/refs?service=git-receive-pack
fatal: HTTP request failed
git did not exit cleanly (exit code 128) (63228 ms @ 22-12-2012 23:57:48)
I already referred How to resolve "git did not exit cleanly (exit code 128)" error on TortoiseGit?
我已经提到了如何解决 TortoiseGit 上的“git 没有完全退出(退出代码 128)”错误?
But i am using HTTPS and not SSH. I mean i cloned using HTTPS url from GITHub. Also i have no idea how to get SSH generated!
但我使用的是 HTTPS 而不是 SSH。我的意思是我使用来自 GITHub 的 HTTPS url 进行克隆。我也不知道如何生成 SSH!
What will be fix?
会修复什么?
采纳答案by VonC
As mentioned here:
正如这里提到的:
The 504 Gateway Timeout error is an HTTP status code that means that one server did not receive a timely response from another server that it was accessing while attempting to load the web page or fill another request by the browser.
This usually means that the other server is down or not working properly.
504 网关超时错误是一个 HTTP 状态代码,这意味着在尝试加载网页或填充浏览器的另一个请求时,一个服务器没有收到来自它正在访问的另一台服务器的及时响应。
这通常意味着另一台服务器已关闭或无法正常工作。
And that is coherent with the current GitHub status(22d of Dec.):
这与当前的GitHub 状态(12 月 22 日)一致:
We are currently experiencing major service outages across all services.
我们目前正在经历所有服务的重大服务中断。
So while the cause is quite punctual and specific to the current network issue on GitHub side, you question can help others with a similar error message:
因此,虽然原因非常准时且特定于 GitHub 端的当前网络问题,但您的问题可以帮助其他人提供类似的错误消息:
504 means: the upstream server is in trouble.
504 表示:上游服务器有问题。