ecommerce_integrations
ecommerce_integrations copied to clipboard
Shopify Integration Issue
trafficstars
Information about bug
Tried integrating Shopify with ERPNEXT but facing Nontype Error
Module
ecommerce, integrations
Version
ERPNext - [v13.39.4]
Installation method
FrappeCloud
Relevant log output / Stack trace / Full Error Message.
### App Versions
{
"chat": "0.0.1",
"ecommerce_integrations": "1.12.0",
"erpnext": "13.39.4",
"erpnext_shipping": "0.0.1",
"erpnext_telegram_integration": "1.0.1",
"frappe": "13.41.4",
"pdf_on_submit": "13.2",
"posawesome": "3.4.0"
}
Route
shopify-import-products
Trackeback
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 69, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 55, in handle
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 38, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 76, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1457, in call
return fn(*args, **newargs)
File "apps/ecommerce_integrations/ecommerce_integrations/shopify/page/shopify_import_products/shopify_import_products.py", line 19, in get_shopify_products
shopify_products = fetch_all_products(from_)
File "apps/ecommerce_integrations/ecommerce_integrations/shopify/page/shopify_import_products/shopify_import_products.py", line 29, in fetch_all_products
for product in collection:
TypeError: 'NoneType' object is not iterable
Request Data
{
"type": "POST",
"args": {
"from_": null
},
"headers": {},
"error_handlers": {},
"url": "/api/method/ecommerce_integrations.shopify.page.shopify_import_products.shopify_import_products.get_shopify_products"
}
Response Data
{
"exception": "TypeError: 'NoneType' object is not iterable"
}
Is the problem identified? @deepeshgarg007
I had the exact same error just because I've missed this checkbox
Hope it will help