Enterprise Github for proxy: received HTTP code 503 from proxy after CONNECT

I try to clone from a corporate git repository, but always get this error message after a while:

fatal: could not access the 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 
+9
source share
5 answers

If this is a corporate repo, you can ignore the proxy settings. One possible solution to your problem:

  • Ignore proxies: export no_proxy=YOUR_CORP_DOMAIN_ON_GITHUB , where the domain name can be in the form github.acme.net

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

Then you can clone the repo w / git clone YOUR_HTTPS_CLONE_URL

+8
source

If you want to ignore proxies for a single git command, you can use the -c option, for example:

git clone http: // user@yourcompany.com /repo.git --config http.proxy =

+3
source

In my case, I needed to disable the proxy server and authenticate SSL certificates, I do not really like this solution, since it does not suit me - disabling SSL certificate verification does not seem reasonable!

But here is the command I ran to get it to work:

 git clone <addr of repo> --config http.proxy= --config http.sslVerify=false 
+2
source

If the repository is in GitLab, you must be a member of a group or project (see https://git-scm.com/book/en/v2/Git-on-the-Server-GitLab ).

0
source

you can add a.gitconfig to your file to ignore your corporate proxy:

 [http "http://proxy.corpadderess:8080"] sslVerify = false proxy = 
0
source

Source: https://habr.com/ru/post/1263542/


All Articles