Pagination returns 422 error



What exactly does the pagination related API error LIST_RECORDS_ITERATOR_NOT_AVAILABLE mean?

The API docs say

Iteration may timeout due to client inactivity or server restarts. In that case, the client will receive a 422 response with error message LIST_RECORDS_ITERATOR_NOT_AVAILABLE . It may then restart iteration from the beginning.

What does that mean? How am I supposed to deal with that?

The first “page” ie. the first 100 records are always correctly returned, but the next “page” fails randomly; sometimes it works, the next minute it doesn’t.

This is extremely frustrating and a major issue for our use case at the moment. Any help is appreciated.