distribution.getSeries() raises HTTPError on redirect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restfulclient |
Triaged
|
Low
|
Unassigned |
Bug Description
Attmpeting to do dsitribution[
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "./bin/
series = distro.
File "/usr/lib/
url, in_representation, http_method, extra_headers=
File "/usr/lib/
raise HTTPError(response, content)
HTTPError: HTTP Error 301: Moved Permanently
Response headers:
---
content-length: 0
content-type: text/plain;
date: Wed, 01 Sep 2010 18:02:23 GMT
location: https:/
server: zope.server.http (HTTP)
status: 301
vary: Accept,
via: 1.1 wildcard.
x-content-
x-powered-by: Zope (www.zope.org), Python (www.python.org)
---
Response body:
---
---
Changed in lazr.restfulclient: | |
status: | New → Triaged |
importance: | Undecided → Low |
Confirmed. The work around is to use distribution[ u'ubuntu' ].getSeries( name_or_ version= u'maverick' ) . That is, use u'ubuntu' instead of u'Ubuntu'. Eventually we'll get around to making launchpadlib more robust for this.