paginateRequests() returns as soon as a page carries no items (src/utils.ts:329), before looking at nextCursor. With filter: 'pending' or 'locked' the API can filter out a whole page while the cursor still points at more data, so the iterator truncates silently. listKeys() has the same stop condition (src/resource_clients/key_value_store.ts:215). Termination should rely on the cursor alone.
#979 states cursor iterators are unaffected — that does not hold for a server-side filter.
Python: apify/apify-client-python#964.
✍️ Drafted by Claude Code
paginateRequests()returns as soon as a page carries no items (src/utils.ts:329), before looking atnextCursor. Withfilter: 'pending'or'locked'the API can filter out a whole page while the cursor still points at more data, so the iterator truncates silently.listKeys()has the same stop condition (src/resource_clients/key_value_store.ts:215). Termination should rely on the cursor alone.#979 states cursor iterators are unaffected — that does not hold for a server-side
filter.Python: apify/apify-client-python#964.
✍️ Drafted by Claude Code