justeat / ZendeskApiClient

C# Client for working with the Zendesk API
Other
65 stars 86 forks source link

Json serialization exception using the new cursor iterator #328

Open bmoyer240 opened 9 months ago

bmoyer240 commented 9 months ago

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 commented 9 months ago

https://github.com/justeat/ZendeskApiClient/pull/329

andrewdeans commented 7 months ago

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