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
{
"error": {
"problem":"UPSTREAM_ERROR",
"message":"Too many tokens in Query. Max tokens: 75 Token Count: 130"
}
}
Steps to replicate
Put a string with over 75 words in an allsearch-api search (start with https://allsearch-api.princeton.edu/search/article?query= then put over 75 words after)
Impact of this bug
Very long queries are not searched against the articles at all
Expected behavior
When a user puts in a very long query, it is still queried against the Summon article service
Actual behavior
Queries with many "tokens" (words and boolean operators combined) only get an error from Summon and are not searched.
example url with many tokens
produces
Steps to replicate
https://allsearch-api.princeton.edu/search/article?query=
then put over 75 words after)Impact of this bug
Very long queries are not searched against the articles at all
Honeybadger link
https://app.honeybadger.io/projects/114176/faults/109358488/01JCH189R3HH5Z6ZDPZR0EWD4V?page=0
Implementation notes, if any
The text was updated successfully, but these errors were encountered: