KeyError: 'debian' in get_debian_versions

Bug #827263 reported by Martin Pool
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Distributed Development
Confirmed
High
Unassigned

Bug Description

exult and some other packages fail like this:

Traceback (most recent call last):
  File "./import_package.py", line 1124, in <module>
    only_before=options.only_before))
  File "./import_package.py", line 1014, in main
    versions = get_versions(package, extra_debian=extra_debian)
  File "./import_package.py", line 220, in get_versions
    vlist = get_debian_versions(package, extra_debian=extra_debian)
  File "./import_package.py", line 152, in get_debian_versions
    d_archive = lp.distributions['debian'].main_archive
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/resource.py", line 950, in __getitem__
    raise KeyError(key)
KeyError: 'debian'

http://package-import.ubuntu.com/status/exult.html

I can also reproduce this locally trying to import ntrack.

Revision history for this message
Martin Pool (mbp) wrote :

This is bug 626960 and probably caused by a transient error, so retrying exult ought to fix it.

Revision history for this message
Martin Pool (mbp) wrote :

On my local machine when debugging this I observed that some requests failed with "Expired token", which is commented as not being handled by get_lp. I'm not sure if that's actually related to this bug though.

From lp-shell, I can get this item, so I wonder if this is actually buggy error handling in restfulclient:

>>> lp.distributions['debian']
<distribution at https://api.launchpad.net/1.0/debian>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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