Erpnext_Shopify synchronisation trouble

Hi I’ve got some problem with the module. Right now I can only sync one product, a template with multiple variant, but then the module stop working the “enable sync” get unchecked.

What do you think it is?

Thank you,


P.S. : Here the issue : No log on error · Issue #76 · frappe/erpnext_shopify · GitHub

Ok I think I find part of the problem.

Since you add a try except in the code to send a EMAIL and disable the sync, we do not get Error in the sceduler log anymore because the error is handle before.

Am I right about this?



@saurabh6790 Please check.


It raising some exception while syncing. Please check you Scheduler logs for more details.

@saurabh6790 That’s the trouble. I’ve had to put your try except in commentary in order to get the error back in scheduler logs…

By putting your “try except” in the you’ve disable the error handler that add error in the scheduler logs.

Also here the new error message I get when I disable try except.

Method: hourly_long, Handler: erpnext_shopify.api.sync_shopify_resources
Traceback (innermost last):
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/", line 114, in scheduler_task
  File "/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/", line 31, in sync_shopify_resources
    sync_products(shopify_settings.price_list, shopify_settings.warehouse)
  File "/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/", line 17, in sync_products
    sync_erpnext_items(price_list, warehouse, shopify_item_list)
  File "/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/", line 313, in sync_erpnext_items
    sync_item_with_shopify(item, price_list, warehouse)
  File "/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/", line 344, in sync_item_with_shopify
    new_item = post_request("/admin/products.json", item_data)
  File "/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/", line 43, in post_request
  File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/requests/", line 840, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
 HTTPError: 422 Client Error: Unprocessable Entity for url:

There seem to be a problem when you send one Item to Shopify I’ll add some code to create a file of the JSON send to help you find the source.


is the problem solved?..i got this error when send variants item…