Problems using Launchpad through proxy finally resolved —21 August 2012
A long-standing bug with Bazaar/Launchpad has finally been resolved! Until recently I was not able to checkout anything from Launchpad through a corporate proxy, getting errors like:
bzr: ERROR: Connection error: Couldn't resolve host 'xmlrpc.launchpad.net' [Errno 11004] getaddrinfo failed
bzr: ERROR: Certificate error: hostname '172.16.16.16' doesn't match either of '*.launchpad.net', 'launchpad.net'
Finally this has been resolved in Bazaar 2.5.1 (you do need 2.5.1, the problem still existed in 2.5). Another important piece is that if you are using the command line, the proxy should be set in https_proxy environment variable, in the format:
Notice the “s” in “https_proxy”, this is different from “http_proxy”, and required for Launchpad urls such as “lp:someproject”.
With this in place now I can checkout with
bzr co lp:theproject as usual.