You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, values is empty but the response does not contain a deltaLink but a nextLink. Only on the second page (the second request) the response contains a deltaLink:
@ChristianBoehlke Thanks for reporting this issue. Yes its a valid to keep fetching until the deltaLink is returned in this case. It will be awesome if you contribute with a PR for this.
Hello,
We are using this library and the
PageIterator
to iterate over multiple pages that are returned fromGET /v1.0/me/calendarView/delta
.If the calendar is empty, the response looks like this:
As you can see,
values
is empty but the response does not contain adeltaLink
but anextLink
. Only on the second page (the second request) the response contains adeltaLink
:Unfortunately, the
PageIterator
stops iterating if the response has no values and it does not fetch the second page:msgraph-sdk-javascript/src/tasks/PageIterator.ts
Lines 86 to 88 in bed02c8
Is there another way to make the
PageIterator
work with empty collections?Would it make more sense to keep fetching pages until the first
deltaLink
is returned? I'm happy to contribute a PR for that.The text was updated successfully, but these errors were encountered: