[BUG] Unexpected JSON error message in repository search #189440
-
Select Topic AreaBug BodyWhen using the "OR" operator in combination with the "owner" query and any other text, the search results become a mess of JSON text.
https://github.com/repos?q=owner%3A%40me+OR+org%3Aexample+test |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
💬 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. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Hi! There seem to be two separate problems here: 1. Query parsing limitationGitHub's search engine fails to parse a combination of This is likely a backend parser constraint — the 2. UI leaking raw JSON (the real bug)Regardless of whether the query is valid, the UI should never surface raw
Workaround (for now)Split into separate searches, or omit the free-text term when using The JSON bleed is the part that definitely needs a fix on the UI/API layer — even if the query syntax ends up being intentionally unsupported, users should never see raw internal error payloads. |
Beta Was this translation helpful? Give feedback.
-
|
I've seen this before. The issue is that The fix is to group your terms properly. You likely want repositories that are either owned by you or belong to the
Or if you want repos that are in the org and have "test", but also include your own repos regardless of "test":
Try this corrected URL: The |
Beta Was this translation helpful? Give feedback.

I've seen this before. The issue is that
ORin GitHub search has very low precedence. Your queryowner:@me OR org:example testis being parsed as(owner:@me) OR (org:example test). The second partorg:example testisn't a valid qualifier, so GitHub's search backend falls back to returning raw JSON instead of the HTML results page.The fix is to group your terms properly. You likely want repositories that are either owned by you or belong to the
exampleorg, and also contain the word "test". Use parentheses to enforce this:owner:@me OR org:example +testOr if you want repos that are in the org and have "test", but also include your own repos regardless of "test":
(org:example +test) OR ow…