0
We have here in the company a repository Bitbucket in intranet. I’m trying to make a clone of the project but is giving a strange error in relation to proxy. I already talked to the infrastructure sector, and the staff said they have no proxy. Even the repository is on the intranet and said that there is no reason to hit there on the internet to make such a check.
I am executing the following command:
git clone http://[email protected]:7990/scm/dk-bra/fulanosbarapi.git
Below is the answer that GIT returns to me:
Cloning into 'fulanosbarapi'... fatal: unable to access
'http://[email protected]:7990/scm/dk-bra/fulanosbarapi.git':
Could not resolve proxy: proxy.edv.fulano.de
I used the command below to delete any configuration of proxy in GIT, but still the error persists:
git config --global --unset http.proxy
I did a test on another machine to see if it was my profile, but did the clone correctly. Only this machine I’m doing that. I tried to search all the remnants of this PC to try to find anything but without success.
Does anyone have any idea what might be going on?
Check if there are HTTP_PROXY and HTTPS_PROXY variables configured in your environment.
– Giovanni Nunes
@Giovanninunes I checked and even to ensure, I used the ai command in the question description to remove any proxy configuration. You know if there’s another way to see it?
– viana
Removing the proxy is not always the solution. I believe you need to configure it correctly, as your company network requires. I would particularly start by copying the settings of a machine that manages to complete the clone...
– Leonardo Alves Machado
Oops, I was talking about shell variables (bash, ksh, etc.) that define the proxy and not the Git configuration and that are consulted by it as well:
HTTPS_PROXY=127.0.0.1:9000 git clone https://github.com/plainspooky/giovannireisnunes.git
and will result in the same error you are getting:fatal: unable to access 'https://github.com/plainspooky/giovannireisnunes.git/': Failed to connect to 127.0.0.1 port 9000: Connection refused
– Giovanni Nunes
I was having a similar problem using a VM. It started giving this error mysteriously. What I did was save my file. gitignore, deleted the folder from my repository and cloned it again... I copied my file . gitignore into it and all solved!
– Master JR