Office365-REST-Python-Client icon indicating copy to clipboard operation
Office365-REST-Python-Client copied to clipboard

Pagination with `page_size` set is not querying for the next page

Open nnyx7 opened this issue 1 year ago • 0 comments

Pagination with page_size set is not working as expected. Possibly pagination in general, but I haven't tested with the default page size.

I have 4 site pages. When I set page_size=2 the iterator gives me just the top 2 pages and exits. I've checked that in this case collection.has_next is never set to true. Without setting page_size I get all 4 pages as expected.

for page in ctx.site_pages.pages.paged(page_size).get().execute_query():
    pages += [page]

Can you check what might be the cause of this issue? Thanks

nnyx7 avatar Nov 24 '24 17:11 nnyx7