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

Matthew Moisen picture Matthew Moisen · Jan 13, 2014 · Viewed 47.4k times · Source

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.

Answer

Muhammad Tariq picture Muhammad Tariq · Jul 26, 2016

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 ''