Closed charnockandsandlin closed 6 months ago
Fixed by doing the following
try
{
do
{
result = await service.ListAsync(result.GetNextPageFilter());
LogHelper.Log($"Working! Total results: {products.Count}; Elapsed time: {executionTime.Elapsed.TotalSeconds} seconds", LogLevel.Information);
await Task.Delay(1000);
} while (result.HasNextPage && (!ENABLE_MAX_RESULTS || products.Count < MAX_RESULTS));
}
catch (ShopifyRateLimitException ex)
{
LogHelper.Log($"Shopify Timeout! Retry after: {ex.RetryAfterSeconds}", LogLevel.Warning);
await Task.Delay((int)(ex.RetryAfterSeconds * 1000));
// Continue iterating
continue;
}
Fixed
ShopifySharp v6.13.0
Hello, I am attempting to list all of my development store's active product (using a filter), however I keep getting the same first 50 results as if I'm not getting the next page. I noticed the following on the documentation for ListAsync:
Will ListAsync only work for the first 250 products? I'll be attempting to pull in 50k+ results. Here is my sample code:
How can I page to the next result set?
Thank you for your time and for supporting this API!