REST search API returning incomplete or no results #204466
Replies: 3 comments 2 replies
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
The flakiness you are describing matches documented behavior of the Search API rather than an outage, and the query itself is the reason it shows up here specifically.
The 503 is worth separating from the rest. Code search carries its own rate limit, 10 requests per minute for authenticated requests, tighter than the 30 per minute that applies to the other search endpoints, and it is easy to exceed while iterating on a reproducer without noticing, since it is a different bucket from your general rate limit. Check Two changes that should make results both more complete and more consistent: narrow the query so the candidate set is smaller, scoping it to an org, a repo, or an extension cuts the timeout risk enormously since If my answer was helpful to you, please consider marking it as the correct answer, thanks. |
|
I'm seeing a very similar issue with GitHub Code Search on the web UI as well. For example, with an ordinary query such as At the same time, if there's truely a search budget, there should be a What seems unusual is that the decrease is much faster than I would expect from normal repository updates or file removals. Some repositories/files that were previously discoverable also seem to disappear from Code Search even though the repositories themselves are still available. So this looks similar to the behavior described here: the underlying content still exists, but the searchable/indexed set appears to be changing or becoming substantially smaller. I haven't determined whether this is related to reindexing, replica inconsistency, or another backend issue, but I wanted to add another observation since the behavior seems reproducible over multiple searches. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
API
Body
I've been getting inconsistent results today from the
/search/codeREST API: on queries that should have large numbers of results, I get back a bigtotal_countbut noitems. I've seenincomplete_resultsbe both true and false on the same query in close succession, and some queries that did return items earlier today are no longer doing so. Below is a reproducer script using the queryimport filename:__init__.py: right now it consistently returns no items for me, and occasionally even gives a 503 error. I don't see anything relevant ongithubstatus.com, so maybe I'm somehow doing something wrong? Any advice would be appreciated!All reactions