Corporate Github behind proxy: Received HTTP code 503 from proxy after CONNECT

ben0it8 picture ben0it8 · Jan 29, 2017 · Viewed 48.7k times · Source

I am trying to clone from a corporate git repo, but always receive this error message after a while:

fatal: unable to access URL: Received HTTP code 503 from proxy after CONNECT

I have the following .gitconfig file:

[https]
    sslVerify = false
    proxy = https://proxy.corpadderess:8080
[http]
    sslVerify = false
    proxy = http://proxy.corpadderess:8080  

Answer

srctaha picture srctaha · Mar 10, 2017

If it is a corporate repo, you might want to ignore proxy settings. One possible solution to your problem is here:

  1. Ignore proxy: export no_proxy=YOUR_CORP_DOMAIN_ON_GITHUB, where the domain name might be in the form of github.acme.net

  2. Ignore SSL verification: git config --global http.sslVerify "false"

You could then clone the repo w/ git clone YOUR_HTTPS_CLONE_URL