-
Notifications
You must be signed in to change notification settings - Fork 57
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
Error The search query is invalid; Check the search query.
with multiple repositories in SEARCH_QUERY
#218
Comments
One thing to try would be to check that these search queries also fail/succeed the same when entered into the github search ui as when they are used in this tool. that could help us narrow down if the search syntax is an issue with the backend search API or something specific about this tool. |
Hello @zkoppert 👋 Thanks for your comment. I tried using the built search query with the Github UI and strangely it could not search. I mean, there was no error but it didn't make sense, it seems like it isn't able to conduct a search. 😕 When I search with a single repo, the UI is able to show PR results:
When I add a second repo, the UI shows the message above:
|
The message above is indicating that there are no results to show. Maybe it is parsing the search as it has to be in both repos like an "and" function? 🤔 I'm not seeing those same results when I test this on a set of open source repos.... In the below examples the proper search results are returned. Do you see that as well? Check out |
Hey @zkoppert 👋 Thanks for checking it out with open source repos. You're right. I think I found out what causes this strange behavior with private repositories. Although my user has read access to all repositories, for some reason, I need to be part of the GitHub teams that maintain all repositories (or a root GitHub team that contains all other teams) that I want to conduct multiple-repository-search on. 🤷♂️ I don't really understand the logic behind this because I would have expected a single repo search to return no results as well. |
Yeah that is an odd design. I'll close out this issue in this repo since it's related to core search functionality. |
Hello folks 👋
First of all, thanks for this great project, I really appreciate it. ❤️
For some reason, when I have multiple repositories in the
SEARCH_QUERY
I always getThe search query is invalid; Check the search query.
error. If I try with one repository at a time, there's no such problem. What could be the issue? How could I triage it?Here's a sample
SEARCH_QUERY
captured from a failed instance:And another captured from a successful instance:
Any ideas? I'm using a personal access token with proper access rights. 🗒️
Thanks in advance. 🙇♂️
The text was updated successfully, but these errors were encountered: