Git错误:请求的URL在访问http://时返回错误:504网关超时 [英] Git Error: The requested URL returned error: 504 Gateway Timeout while accessing http://

查看:3036
本文介绍了Git错误:请求的URL在访问http://时返回错误:504网关超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是由我公司的内部云(KVM)配置的虚拟机 - RHEL 6.4。



我可以从互联网克隆外部存储库。然而,我无法弄清楚如何在我公司的内部网上克隆内部存储库。



起初,我没有设置 http_proxy https_proxy 并收到此错误:

 错误:The请求的URL返回错误:401访问http:// ....时需要的授权

设置 http_proxy https_proxy ,我现在在等待大约60秒后收到此错误:

 错误:请求的URL返回错误:504访问http:// ... 


我可以从我的笔记本电脑中克隆这个回购找到的东西,而不仅仅是VM



想法在哪里我应该看?



谢谢。

解决方案

这在.gitconfig文件中,那么这个问题将得到解决。

   -  [http] 
proxy = http://127.0 .0.1:8087
sslVe rify = false




git config --global http。代理''


I am using a VM provisioned by my company's internal cloud (KVM) - RHEL 6.4.

I am able to clone external repositories from the internet. Yet, I cannot figure out how to clone internal repositories on my company's intranet.

At first I didn't set the http_proxy or https_proxy and received this error:

error: The requested URL returned error: 401 Authorization Required while accessing http://....

After setting http_proxy and https_proxy, I now receive this error after waiting about 60 seconds:

error: The requested URL returned error: 504 Gateway Timeout while accessing http://...

I can clone this repo find from my laptop, just not the VM

Any ideas on where I should look?

Thanks.

解决方案

use this in .gitconfig file then this problem will resolved.

- [http]
     proxy = http://127.0.0.1:8087
     sslVerify = false

OR git config --global http.proxy ''

这篇关于Git错误:请求的URL在访问http://时返回错误:504网关超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆