-
Notifications
You must be signed in to change notification settings - Fork 964
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
Search API to search over keywords #3436
Comments
@mitar Thank you for bringing this up! We will only remove the XML-RPC API when its functionality is covered by other new APIs, so I have put this in a future milestone, and I've tagged it so people will see it when looking at API issues. Thanks again. |
Hey @brainwane Currently when performing However when performing the same (pip search) under pypi.org we get HTTP error 404 while getting http://pypi.org/RPC2 Isn't it supposed to be redirected to the old API for now? |
Yes, the XML-RPC API will remain for now.
Correct, the 302 redirect from
I'm not sure exactly what index URL you're using here, but you should be using
|
Hey @di I get your point, but why redirect to an endpoint that doesn't exist? Would it be possible to have the same redirect as Meaning redirect from It would help us a lot |
I'm not sure I follow. There is nothing on
I don't think this is necessary and we're unlikely to add it. Your client should just use the correct search index instead. |
Sorry, my bad. I'll explain our scenario: When sending the search request (POST method) we rely on the redirect and perform the search on the path redirected to. Now with the new registry version we don't get that redirect and the search fails. Easiest way to see it: However in the warehouse Setting the same redirect in the warehouse will allow Artifactory users to keep using the search function, without anything breaks when the full redirect of pypi.python.org to pypi.org takes place. |
@yuvalreches After chatting the other maintainers, we realized that the attempt to use However, Artifactory should probably still attempt to use the correct XML-RPC endpoints (either |
Thank you @di Currently we want to make sure Artifactory instances won't be broken due to the changes implemented in Warehouse, and the I see your PR is already merged, when can we expect to see the change in pypi.org? We sure have that in our roadmap. |
I think we are having communication issues. Let me be clear: there will not be a redirect from What we have added is an endpoint at
It is live now. |
Artifactory's code only relies on the Would it be possible to change the response of such requests? Such redirect (as exists on pypi.python.org, however to /pypi) will assure nothing will break on our end. |
Is new API location really the same as old one? I am sure I was getting results before for the following query, but now it is returning empty: client = xmlrpc.ServerProxy('https://pypi.python.org/pypi')
client.search({'keywords': 'd3m_primitive'}) Or do packages have to be (re)published for them to be visible through the new API location? |
More or less blocked on #284. |
With planned deprecation of XML-RPC API it seems there will no way to search packages by their keywords. So I would like to do a feature request for this for the new API.
The text was updated successfully, but these errors were encountered: