-
Notifications
You must be signed in to change notification settings - Fork 23
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
better error for No such user #221
Comments
I'm thinking we should add a |
Was reading the Koji Smoky Dingo docs and ran across https://obriencj.preoccupied.net/koji-smoky-dingo/kojismokydingo/#kojismokydingo.NoSuchUser |
More discussion in internal ticket CWFCONF-883 |
From Mike's comments in https://pagure.io/koji/pull-request/3028:
|
Digging into this more.... Koji's Python library has a XML-RPC protocol has a concept of "faults". When the Koji Hub raises an exception, it translates that to an XML-RPC fault and sends that to the client. The Python client unmarshals that as an The Let's say that we're changing the New client, Old hub:
Old client, New Hub:
Theoretically this means that we must add a In this particular case with
|
Hacking on this a bit more, it's true that almost no client code calls |
With the current hub code (raising
With a modified hub that raises a new fault that the old client cannot translate:
|
I started a thread on koji-devel. Now the work continues here: https://pagure.io/koji/issue/3147 |
Maybe it's simpler to just add |
When
koji_tag
fails because thepackages
parameter configures packages for a username that does not exist, we get a large backtrace forkoji.GenericError
. For example, the error from Koji here isNo such user: 'foobar'
.The text was updated successfully, but these errors were encountered: