ZendeskApiClient icon indicating copy to clipboard operation
ZendeskApiClient copied to clipboard

Json serialization exception using the new cursor iterator

Open bmoyer240 opened this issue 1 year ago • 2 comments

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);

    }
}

bmoyer240 avatar Jan 22 '24 21:01 bmoyer240

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

fbvilela avatar Feb 04 '24 07:02 fbvilela

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

andrewdeans avatar Mar 15 '24 13:03 andrewdeans