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

Allow queries without authentication key #159

Open
juhp opened this issue May 27, 2020 · 2 comments
Open

Allow queries without authentication key #159

juhp opened this issue May 27, 2020 · 2 comments

Comments

@juhp
Copy link

juhp commented May 27, 2020

It would be nice if pdc-client could do queries without insisting on having an auth key.
Authentication is only really needed for updating PDC data.

Version

pdc-client-1.8.0-18.fc32

Steps to Reproduce:

$ pdc -s https://pdc.fedoraproject.org rpm list

Actual results:

Traceback (most recent call last):
File "/usr/bin/pdc", line 22, in
runner.run()
File "/usr/lib/python3.8/site-packages/pdc_client/runner.py", line 183, in run
self.client = pdc_client.PDCClientWithPage(self.args.server, page_size=self.args.page_size, ssl_verify=ssl_verify, page=self.args.page)
File "/usr/lib/python3.8/site-packages/pdc_client/init.py", line 407, in init
super(PDCClientWithPage, self).init(server, token, develop, ssl_verify, page_size)
File "/usr/lib/python3.8/site-packages/pdc_client/init.py", line 238, in init
token = self.obtain_token()
File "/usr/lib/python3.8/site-packages/pdc_client/init.py", line 256, in obtain_token
raise Exception('Could not obtain token from any known URL.')
Exception: Could not obtain token from any known URL.

Expected results:

Read some results without auth key.

@hluk
Copy link
Contributor

hluk commented May 29, 2020

I wasn't aware that the pdc client and server are still used. I thought fpdc (with fpdc-client) is the new cool thing.

cc @lubomir

@juhp
Copy link
Author

juhp commented May 30, 2020

Ah, so I wasn't aware of fpdc...

It seems to be a library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants