Reputation: 97
I am trying to pull from a remote repo using https -- I don't have the ability on the machine I am using to configure ssh. I have been stuck on this error for a while. At no point am I prompted to enter a password.
error: Failed connect to bitbucket.org:3128; Connection refused while
accessing https://[email protected]/MYUSER/REPO.git/info/refs
fatal: HTTP request failed
Upvotes: 2
Views: 3520
Reputation: 1
Get the IP address of bitbucket.org
from ping command in some other system. Then edit the /etc/hosts file with this IP.
This worked for me.
Upvotes: -1
Reputation: 21
Even if you don't have a local proxy set up this/similar error can still show up if your internet latency is a bit off and its also possible that bitbucket is throttling private unpaid repos. It looks like the timeout for connections is rather aggressive. You can get an error such as the one below for any remote branch operations.
"Failed to connect to bitbucket.org port 443: Connection refused"
Unfortunately the solution is rather dumb....keep trying till it succeeds and it will it appears from my experience.
Upvotes: 2
Reputation: 97
I figured it out once I realized that no one else was encountering this error on the port number I was seeing (3128). Turns out it was a local proxy setting. This answer fixed it for me.
Upvotes: 1