I'm using Search API (https://cloud.google.com/appengine/docs/standard/python/search/) on Google App Engine Python Standard Environment.
In my app I have several search indexes and query them with cursor pagination (paging pagination can't return more than 1000 results) https://cloud.google.com/appengine/docs/standard/python/search/cursorclass
Sometimes I randomly get following exception:
InvalidRequest: Failed to execute search request "<search query>"
with no further details. If I get It in the middle of some query, It is going to reproduce forever with such cursor.
- Item set is immutable between requests (no items are added or deleted)
- First page of query is always ok (exception occurs only if I query with cursor)
- I'm not using any sorting
- Cursors are exact same as received by previous query and are not corrupted between requests
Any ideas how to solve this?
related:
https://issuetracker.google.com/issues/35898069
https://issuetracker.google.com/issues/35895008
https://groups.google.com/forum/#!topic/google-appengine/tBHkZLeYTOI