Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hg clone using mercurial throws "getaddrinfo failed" error (windows 7)

I have created a public repository on bit bucket website. I can run the clone command from outside the office network (LAN).

But it is not working inside the office network. I am suspecting it is to do with firewall or proxy settings. I can access the URL from browser window (IE9/Chrome).

Please help in fixing this problem. Thanks.

Command:

hg clone https://bitbucket.org/gbsandeep/test2

abort: error: getaddrinfo failed

PS: I went through other posts but it did not help.

like image 207
Sandeep G B Avatar asked Feb 14 '12 05:02

Sandeep G B


2 Answers

If you find yourself on this page because you've hit a getaddr error when using the hg-git plugin with a username, it is likely that you've hit the Fails with username in URL (getaddreinfo failed) bug.

Thus:

$ hg clone https://foo@stash/
abort: error: getaddrinfo failed
$ hg clone https://stash/
http authorization required for http://stash.....
realm: Atlassian Stash
user: ...

(Doesn't solve the original user's issue, but can be a cause of the same symptoms).

like image 163
user3805082 Avatar answered Sep 23 '22 01:09

user3805082


Sounds like you might need to tell Mercurial what your proxy settings are. First hit for "mercurial proxy":

http://www.markhneedham.com/blog/2009/05/13/mercurial-pulling-from-behind-a-proxy/

If you need to figure out what settings to use, you should probably look at what your IE settings are, e.g. by going to the Internet Properties | Connections | LAN Settings dialog.

like image 23
jjlin Avatar answered Sep 25 '22 01:09

jjlin