#77 Cannot log into Bugzilla, API issue.
Opened 2 years ago by limb. Modified 2 years ago

Please enter your FASJSON username: limb
Please enter your Bugzilla username: gwync@protonmail.com
Please enter your Bugzilla password:
Traceback (most recent call last):
File "/usr/bin/fedscm-admin", line 33, in <module>
sys.exit(load_entry_point('fedscm-admin==1.1.4', 'console_scripts', 'fedscm-admin')())
File "/usr/lib/python3.10/site-packages/click/core.py", line 1137, in call
return self.main(args, kwargs)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback,
ctx.params)
File "/usr/lib/python3.10/site-packages/click/core.py", line 763, in invoke
return __callback(
args, kwargs)
File "/usr/lib/python3.10/site-packages/fedscm_admin/fedscm_admin.py", line 76, in cli
login_to_bugzilla_with_user_input()
File "/usr/lib/python3.10/site-packages/fedscm_admin/utils.py", line 55, in login_to_bugzilla_with_user_input
BUGZILLA_CLIENT.login(username, password)
File "/usr/lib/python3.10/site-packages/fedscm_admin/bugzilla.py", line 77, in login
self.client.login(username, password)
File "/usr/lib/python3.10/site-packages/fedscm_admin/bugzilla.py", line 63, in client
self._client = Bugzilla(self.api_url, use_creds=True)
File "/usr/lib/python3.10/site-packages/bugzilla/base.py", line 251, in init
self.connect(url)
File "/usr/lib/python3.10/site-packages/bugzilla/base.py", line 526, in connect
version = self._backend.bugzilla_version()["version"]
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 146, in bugzilla_version
return self._xmlrpc_proxy.Bugzilla.version()
File "/usr/lib64/python3.10/xmlrpc/client.py", line 1122, in call
return self.__send(self.__name, args)
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 125, in _ServerProxy__request
ret = ServerProxy._ServerProxy__request(
File "/usr/lib64/python3.10/xmlrpc/client.py", line 1464, in __request
response = self.__transport.request(
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 100, in request
return self.__request_helper(url, request_body)
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 47, in __request_helper
return self.parse_response(response)
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 84, in parse_response
return unmarshaller.close()
File "/usr/lib64/python3.10/xmlrpc/client.py", line 668, in close
raise Fault(
self._stack[0])
xmlrpc.client.Fault: <Fault Client: "Application failed during request deserialization: 32000: You have attempted to access the API either using an unsupported method or using one or more unsupported parameters. You must use the 'Authorization' header to authenticate to the API and you must remove all unsupported parameters from the query. The unsupported parameters are: Bugzilla_login, Bugzilla_password, Bugzilla_token, Bugzilla_api_key. See <a href="https://bugzilla.redhat.com/docs/en/html/api/core/v1/general.html#authentication">https://bugzilla.redhat.com/docs/en/html/api/core/v1/general.html#authentication for details on using the 'Authorization' header. at /usr/share/perl5/vendor_perl/SOAP/Lite.pm line 2855.\n">


I have fixed the issue and processed all the tickets in the queue. There will be a bodhi update coming tomorrow.

Upgraded to 1.1.5, got a traceback. Anything I need to do? I have a BZ API key but don't know where to put it.

Please enter your FASJSON username: limb
Traceback (most recent call last):
File "/usr/bin/fedscm-admin", line 33, in <module>
sys.exit(load_entry_point('fedscm-admin==1.1.5', 'console_scripts', 'fedscm-admin')())
File "/usr/lib/python3.10/site-packages/click/core.py", line 1137, in call
return self.main(args, kwargs)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback,
ctx.params)
File "/usr/lib/python3.10/site-packages/click/core.py", line 763, in invoke
return __callback(
args, kwargs)
File "/usr/lib/python3.10/site-packages/fedscm_admin/fedscm_admin.py", line 76, in cli
login_to_bugzilla_with_user_input()
File "/usr/lib/python3.10/site-packages/fedscm_admin/utils.py", line 46, in login_to_bugzilla_with_user_input
BUGZILLA_CLIENT.client.interactive_save_api_key()
File "/usr/lib/python3.10/site-packages/fedscm_admin/bugzilla.py", line 63, in client
self._client = Bugzilla(self.api_url)
File "/usr/lib/python3.10/site-packages/bugzilla/base.py", line 251, in init
self.connect(url)
File "/usr/lib/python3.10/site-packages/bugzilla/base.py", line 526, in connect
version = self._backend.bugzilla_version()["version"]
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 146, in bugzilla_version
return self._xmlrpc_proxy.Bugzilla.version()
File "/usr/lib64/python3.10/xmlrpc/client.py", line 1122, in call
return self.__send(self.__name, args)
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 125, in _ServerProxy__request
ret = ServerProxy._ServerProxy__request(
File "/usr/lib64/python3.10/xmlrpc/client.py", line 1464, in __request
response = self.__transport.request(
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 100, in request
return self.__request_helper(url, request_body)
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 47, in __request_helper
return self.parse_response(response)
File "/usr/lib/python3.10/site-packages/bugzilla/_backendxmlrpc.py", line 84, in parse_response
return unmarshaller.close()
File "/usr/lib64/python3.10/xmlrpc/client.py", line 668, in close
raise Fault(
self._stack[0])
xmlrpc.client.Fault: <Fault Client: "Application failed during request deserialization: 32000: You have attempted to access the API either using an unsupported method or using one or more unsupported parameters. You must use the 'Authorization' header to authenticate to the API and you must remove all unsupported parameters from the query. The unsupported parameters are: Bugzilla_login, Bugzilla_password, Bugzilla_token, Bugzilla_api_key. See <a href="https://bugzilla.redhat.com/docs/en/html/api/core/v1/general.html#authentication">https://bugzilla.redhat.com/docs/en/html/api/core/v1/general.html#authentication for details on using the 'Authorization' header. at /usr/share/perl5/vendor_perl/SOAP/Lite.pm line 2855.\n">

Any suggestions? Still can't process the queue.

Try to remove ~/.config/python-bugzilla/ or any other places with previously-stored BZ credentials.

Can't find that or .bugzillarc

snip from IRC

<mboddu> GwynCieslasheher:  ~/.cache/python-bugzilla/bugzillatoken is the problem for me, I renamed it and it worked for me

A new version with couple of fixes is in making.

Login to comment on this ticket.

Metadata