Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fedora-easy-karma fails with limit error #267

Closed
nirik opened this issue Aug 20, 2015 · 4 comments
Closed

fedora-easy-karma fails with limit error #267

nirik opened this issue Aug 20, 2015 · 4 comments
Labels
API Issues related to Bodhi's REST API Client Issues with the bodhi command line interface tool

Comments

@nirik
Copy link
Member

nirik commented Aug 20, 2015

With python-fedora-0.5.5-1.fc22.noarch installed, running fedora-easy-karma gives:

$ fedora-easy-karma
Getting list of installed packages...
Waiting for Bodhi for a list of packages in updates-testing (F22)...
Cannot query Bodhi: 1000 is greater than maximum value 100

perhaps allow queries of 1000 or we could ask fedora-easy-karma to adjust to 100 I guess.

@nirik
Copy link
Member Author

nirik commented Aug 20, 2015

If I manually edit fedora-easy-karma and set it to 100, it gets past that to a new error:

Waiting for Bodhi for a list of packages in updates-testing (F22)...
Traceback (most recent call last):
File "/usr/bin/fedora-easy-karma", line 651, in
FedoraEasyKarma()
File "/usr/bin/fedora-easy-karma", line 466, in init
self.already_commented(update, self.options.fas_username):
File "/usr/bin/fedora-easy-karma", line 576, in already_commented
comment["author"].split(" ")[0] == user:
KeyError: 'author'

@ralphbean ralphbean added Client Issues with the bodhi command line interface tool API Issues related to Bodhi's REST API labels Aug 21, 2015
@JamesWrigley
Copy link

This also happens for me with fedora-easy-karma-0-0.24.20150508gitc8e437c0.fc22.noarch and python-fedora-0.5.5-1.fc22.noarch.

@tyll
Copy link
Contributor

tyll commented Sep 9, 2015

IMHO the 100 updates limit is too low, at least for f-e-k, this means that 6 slow request are required to get a list of all testing updates which took 4 minutes when I tested this. Since the f-e-k queries are very common, can Bodhi maybe cache them and for example just provide it at a static location to make this faster?

@lmacken
Copy link
Contributor

lmacken commented Oct 5, 2015

It looks like this issue has been fixed.

@lmacken lmacken closed this as completed Oct 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Issues related to Bodhi's REST API Client Issues with the bodhi command line interface tool
Projects
None yet
Development

No branches or pull requests

5 participants