Skip to content

nextLink not working for user /messages #178

@latonita

Description

@latonita

Bug Report

Prerequisites

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

Description

I want to read all emails from user mailbox.
Here is my request:

https://graph.microsoft.com/v1.0/users/USER_ID/messages?$top=100

After first call I'm getting following nextLink which returns same data,
then same nextLink over and over again indefinitely.

https://graph.microsoft.com/v1.0/users/USER_ID/messages?$top=100&$skip=138
https://graph.microsoft.com/v1.0/users/USER_ID/messages?$top=100&$skip=138
https://graph.microsoft.com/v1.0/users/USER_ID/messages?$top=100&$skip=138

I tried graph explorer - it works fine and it returns proper next links.

Expected behavior:
Next link shall be properly populated after the request

Actual behavior:
Next link is wrong and newer changes

Additional context

node.js 8.16.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions