bzr: ERROR: exceptions.KeyError: 'port' when branching ("Unable to handle http code 401: expected 200 or 404 for full response.")
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hello! I was trying to branch some code in SVN, https failed so I tried http, which resulted in an exception:
mrooney@
bzr: ERROR: Invalid http response for https:/
mrooney@
bzr: ERROR: exceptions.
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
attaching the crash file
and including a description of the problem.
The crash file is plain text and you can inspect or edit it to remove
private information.
Let me know if I can be of any more help, or if there is a workaround for this issue.
Traceback:
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run_
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
from_location)
File "/usr/lib/
bzrdir = klass.open(
File "/usr/lib/
return BzrDir.
File "/usr/lib/
redirected)
File "/usr/lib/
return obj(*args, **kwargs)
File "/usr/lib/
return action(transport)
File "/usr/lib/
transport, _server_
File "/usr/lib/
return format.
File "/usr/lib/
transport = get_svn_
File "/usr/lib/
dav_entries = dav_options(
File "/usr/lib/
resp = transport.
File "/usr/lib/
response = self._opener.
File "/usr/lib/
response = meth(req, response)
File "/usr/lib/
code, msg, hdrs)
File "/usr/lib/
result = self._call_
File "/usr/lib/
result = func(*args)
File "/usr/lib/
return self.parent.
File "/usr/lib/
response = meth(req, response)
File "/usr/lib/
code, msg, hdrs)
File "/usr/lib/
result = self._call_
File "/usr/lib/
result = func(*args)
File "/usr/lib/
return self.auth_
File "/usr/lib/
matching_
File "/usr/lib/
user, password = self.get_
File "/usr/lib/
port=
KeyError: 'port'
description: | updated |
affects: | bzr → bzr-svn |
I can confirm that problem and it also occurs when you use a checkout instead of a branch. It first hit me when I upgraded to Ubuntu Lucid and all the repositories I used where unusable. You can try to force svn by using "svn+https://" instead of "https://" but this means you get prompted for your password and username all the time you want to do an update or a commit (you are actually prompted twice for an update...)