Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json serialization exception using the new cursor iterator #328

Open
bmoyer240 opened this issue Jan 22, 2024 · 2 comments
Open

Json serialization exception using the new cursor iterator #328

bmoyer240 opened this issue Jan 22, 2024 · 2 comments

Comments

@bmoyer240
Copy link

The iterator is failing when deserializing the next page of results regardless of the page size.

image

var cursor = await _zendeskClient.Users.GetAllAsync(new CursorPager(), cancellationToken);
var iterator = _iteratorFactory.Create<UserResponse>(cursor);

while (iterator.HasMore())
{
    await iterator.NextPage();

    foreach (var user in iterator)
    {
        _logger.LogDebug("User: {Name}", user.Name);

    }
}
@fbvilela
Copy link
Contributor

fbvilela commented Feb 4, 2024

#329

@andrewdeans
Copy link

Any chance we can get #329 merged and an updated nuget package released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants