Skip to content

PageIterator hangs or crashes after first fetch #1044

Description

@WattsGreg

Bug Report

Prerequisites

  • [Yes] Can you reproduce the problem?
  • [Yes] Are you running the latest version?
  • [Yes] Are you reporting to the correct repository?
  • [Yes] Did you perform a cursory search?

For more information, see the CONTRIBUTING guide.

Description

When fetching a large list of users (over 5000), PageIterator only successfully fetches the first request. Subsequent calls fail to execute, and only the first 100 (default amount I believe) records are retrieved.

Console Errors: There are no console errors or error messages/exceptions for this issue

Steps to Reproduce

Use the suggested code that uses PageIterator to fetch records from a graph endpoint that pages data. You could use take() to limit the number per page.

Expected behavior: All paged data is fetched.

Actual behavior: Only the first fetch is returned.

Additional Context

Rolling back to 3.0.0 has fixed the issue.
I expect the problem might be with some formatting of the nextLink URL inside the library. I passed the nextLink URL through the client directly and was returned with an internal server error from Azure. I did not try the nextLink directly in version 3.0.0

SDK Version - Latest (3.0.3)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions