http_proxy variables with no scheme gives confusing invalid url error

Bug #330823 reported by Johan Dahlberg
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned

Bug Description

As being affected by Bug #186920
I cannot use "bzr branch lp:do-plugins", so I tried access without the launchpad plugin:

> bzr branch http://bazaar.launchpad.net/~do-plugins/do-plugins/trunk
bzr: ERROR: Invalid url supplied to transport: "Host empty in: <proxy-server>:80"

(The actual proxy server name is replaced with <proxy-server> above and in the supplied log file.
The proxy settings seem to be ok, as links and wget are working just fine for both http and https access.)

This problem seems to be similar, but not identical, to launchpad-bazaar Bug #253451

I attach the log for the following commands:
> bzr -Dhttp branch lp:do-plugins
> bzr -Dhpss branch bzr+ssh://<email address hidden>/~do-plugins/do-plugins/trunk
> bzr -Dhttp branch http://bazaar.launchpad.net/~do-plugins/do-plugins/trunk
> bzr -Dhttp branch https://bazaar.launchpad.net/~do-plugins/do-plugins/trunk

The first two commands fail when resolving the hostname "Name or service not known" (as in Bug #186920),
while the latter two seem to fail when about to contact the proxy server.

Regards,
/Johan

Revision history for this message
Johan Dahlberg (dahlberg-ti) wrote :
Revision history for this message
Robert Collins (lifeless) wrote :

what is your http_proxy variable set to?

Revision history for this message
Johan Dahlberg (dahlberg-ti) wrote :

http_proxy=<proxy-server>:80
https_proxy=<proxy-server>:80

Where <proxy-server> is a host name which can be pinged without problems.

/Johan

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 330823] Re: Branching from Launchpad (direct via http) fails behind HTTP/DNS proxy

On Wed, 2009-02-18 at 03:47 +0000, Johan Dahlberg wrote:
> http_proxy=<proxy-server>:80
> https_proxy=<proxy-server>:80
>
> Where <proxy-server> is a host name which can be pinged without
> problems.

use
http://<proxy-server>:80/
which is the way bzr interprets those variables.

(If you had a https proxy server it would be
https://<proxy-server>:443/
or whatever, but _very_ few people actually have that, nearly everyone
talks to their proxy over http).

-Rob

Revision history for this message
Johan Dahlberg (dahlberg-ti) wrote : Re: Branching from Launchpad (direct via http) fails behind HTTP/DNS proxy

Thanks a lot! That works like charm.

Well, no bug then, just an error message that perhaps could be somewhat more helpful.

/Johan

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 330823] Re: Branching from Launchpad (direct via http) fails behind HTTP/DNS proxy

On Wed, 2009-02-18 at 04:36 +0000, Johan Dahlberg wrote:
> Thanks a lot! That works like charm.
>
> Well, no bug then, just an error message that perhaps could be somewhat
> more helpful.

Certainly. Lets see if I remember the syntax:

 title http_proxy variables with no scheme gives confusing invalid url error

Revision history for this message
Satya (satya-bangalore) wrote :

Hmm I was facing this problem and asked to lord "Google" to answer me. Finally he did.

Anyways to error message is misleading.It can be something like "please add http:// to the hostname".
I think it will be better if bzr can add the "http://" token automatically.

Martin Pool (mbp)
Changed in bzr:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
pva (pva) wrote :

Same issue reported downstream: http://bugs.gentoo.org/340851

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.