Shopify sync error

Hi,

im tried shopify + erpnext… but it always failing on sync… the problem is:
when im created variant and set to sync the stock

it raising :
Traceback (innermost last):
File “/home/bobzz/frappe-bench/apps/erpnext_shopify/erpnext_shopify/sync_products.py”, line 536, in update_item_stock_qty
update_item_stock(item.item_code, shopify_settings)
File “/home/bobzz/frappe-bench/apps/erpnext_shopify/erpnext_shopify/sync_products.py”, line 575, in update_item_stock
raise e
HTTPError: 422 Client Error: Unprocessable Entity for url: https://cocona-care.myshopify.com/admin/products/7407113670.json

Request data
{“name”: “tes-GRE”, “item_code”: “tes-GRE”}

but if im not sync with the stock its successfull…

i wonder if this is a bug…

THanks,
Bobby

@saurabh6790

1 Like

@bobzz_zone thanks for raising. I will check and update you soon.

Hi,

@saurabh6790 will wait for it…

THanks,
Bobby

@saurabh6790 how is it ?

@bobzz_zone Sorry but no luck. Could not reproduce the issue on local. Can you share item details ?

Hi Sure…

my items is actually simple…
since is just test item that im tried to sync…

do you have suggestion about how i should give an example ?
i just set the name , group , and uom,
check use variants,
make 2 variants…
check sync with shopify
then i sync it…

Thanks

@bobzz_zone hey thanks, I haven’t checked with variants. Let me test with variants. Thanks :slight_smile:

sure, thanks… will wait for the news… :slight_smile:

@bobzz_zone Thank you so much for pulling attention on this issue.

We have fixed issue via https://github.com/frappe/erpnext_shopify/pull/119