ShopifySharp 6.15.1
Summary
This release fixes a nasty bug in ShopifySharp's LeakyBucketExecutionPolicy
which could cause canceled requests to build up and never be dequeued. If the execution policy was sufficiently swamped (e.g. by a webhook endpoint or just very active usage), then the wait time between requests would increase continuously until each request is waiting potentially 5, 10, 15 minutes between when it enters the queue and when it actually sends. This could lead to OOM exceptions as requests pile up and eventually crash the application, further compounding the problem if this is a webhook endpoint, as Shopify would retry failed requests after 5 seconds.
In addition to that bug fix, this release also adds Product.VariantGids
which can be used to map the REST version of a Shopify product to the Graph version. Remember: Shopify has deprecated the REST API for all product and product-related endpoints, which means eventually we'll all need to migrate to the GraphQL API if we want to work with products.
Changelog
- Added product.variant_gids by @clement911 in #1061
- Fix LeakyBucket cancellation token timeout and memory leak bug by @nozzlegear in #1057
Full Changelog: ShopifySharp/6.15.0...ShopifySharp/6.15.1
How to support ShopifySharp
If you find ShopifySharp useful, please consider contributing to the project! If you'd rather contribute financially, you can do so by sponsoring the author here on Github, or by purchasing a copy of The Shopify Development Handbook on Gumroad.