You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some limits to the length of the queries when searching across GitHub:
Queries longer than 256 characters are not supported
You can't construct a query using more than five AND, OR, or NOT operators
Specific search types, such as code search, might have additional limitations. Check the documentation for these search types for more information.
Describe the bug
While searching for an image in git repos, github search API throws an exception if the query length is greater than 128 characters.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Provide a workaround to handle scenarios where the query length is greater than 128 characters.
Screenshots
Caused by: org.kohsuke.github.HttpException: {"message":"Validation Failed","errors":[{"message":"The search is longer than 128 characters.","resource":"Search","field":"q","code":"invalid"}],"documentation_url":"https://docs.github.com/enterprise/3.1/v3/search/"}
Computing Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: