Shopify Product Variant destroy is locked (HTTP code 423) -


i'm trying update existing variants on product.

to this, first need delete existing variants due race condition issues on api side won't go here outlined here: https://groups.google.com/group/shopify-app-discuss/tree/browse_frm/month/2011-12/927b3c41f7effb44?rnum=231&_done=%2fgroup%2fshopify-app-discuss%2fbrowse_frm%2fmonth%2f2011-12%3ffwc%3d1%26

i http response code 423 (locked) when try delete variant. i'm using shopify ruby gem v3.0.3 fyi. can delete product , create scratch, not ideal.

why deleting variant locked not deleting product?

shopify_product = shopifyapi::product.find(id) shopify_product.variants.each{|v| v.destroy} 

every product in shopify must have @ least 1 variant. if try delete variant product has, shopify return 423 response code.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -