App Versions
{
"builder": "1.10.1",
"chat": "0.0.1",
"ecommerce_integrations": "1.20.1",
"email_delivery_service": "0.0.1",
"employee_self_service": "0.0.2",
"erpnext": "15.30.0",
"erpnext_telegram_integration": "1.2.0",
"frappe": "15.35.0",
"frappe_whatsapp": "v1.0.7",
"helpdesk": "0.10.0",
"hrms": "15.24.0",
"india_compliance": "15.11.0",
"insights": "2.2.2",
"payments": "0.0.1",
"print_designer": "1.4.0",
"raven": "1.6.4",
"sheets": "0.0.1",
"webshop": "0.0.1"
}
Route
Form/Item/new-item-ayqaxpzmth
Traceback
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 114, in application
response = frappe.api.handle(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/api/__init__.py", line 49, in handle
data = endpoint(**arguments)
^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
return frappe.handler.handle()
^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/handler.py", line 49, in handle
data = execute_cmd(cmd)
^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/__init__.py", line 1768, in call
return fn(*args, **newargs)
^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/client.py", line 227, in save
doc.save()
File "apps/frappe/frappe/model/document.py", line 337, in save
return self._save(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/model/document.py", line 359, in _save
return self.insert()
^^^^^^^^^^^^^
File "apps/frappe/frappe/model/document.py", line 308, in insert
self.run_method("after_insert")
File "apps/frappe/frappe/model/document.py", line 962, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/model/document.py", line 1322, in composer
return composed(self, method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/model/document.py", line 1306, in runner
add_to_return_value(self, f(self, method, *args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/ecommerce_integrations/ecommerce_integrations/shopify/connection.py", line 37, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "apps/ecommerce_integrations/ecommerce_integrations/shopify/product.py", line 376, in upload_erpnext_item
update_default_variant_properties(
File "apps/ecommerce_integrations/ecommerce_integrations/shopify/product.py", line 531, in update_default_variant_properties
default_variant: Variant = shopify_product.variants[0]
^^^^^^^^^^^^^^^^^^^^^^^^
File "env/lib/python3.11/site-packages/pyactiveresource/activeresource.py", line 917, in __getattr__
raise AttributeError(name)
AttributeError: variants
Request Data
{
"type": "POST",
"args": {
"doc": "{\"docstatus\":0,\"doctype\":\"Item\",\"name\":\"new-item-xzwgigcfld\",\"__islocal\":1,\"__unsaved\":1,\"owner\":\"pawanraj@z-media.in\",\"naming_series\":\"STO-ITEM-.YYYY.-\",\"item_group\":\"Products\",\"stock_uom\":\"Nos\",\"disabled\":0,\"allow_alternative_item\":0,\"is_stock_item\":1,\"has_variants\":0,\"is_fixed_asset\":0,\"auto_create_assets\":0,\"is_grouped_asset\":0,\"end_of_life\":\"2099-12-31\",\"default_material_request_type\":\"Purchase\",\"valuation_method\":\"\",\"allow_negative_stock\":0,\"barcodes\":[],\"reorder_levels\":[],\"uoms\":[],\"has_batch_no\":0,\"create_new_batch\":0,\"has_expiry_date\":0,\"retain_sample\":0,\"has_serial_no\":0,\"variant_based_on\":\"Item Attribute\",\"attributes\":[],\"enable_deferred_expense\":0,\"enable_deferred_revenue\":0,\"item_defaults\":[],\"min_order_qty\":0,\"is_purchase_item\":1,\"is_customer_provided_item\":0,\"delivered_by_supplier\":0,\"supplier_items\":[],\"country_of_origin\":\"India\",\"grant_commission\":1,\"is_sales_item\":1,\"customer_items\":[],\"taxes\":[],\"inspection_required_before_purchase\":0,\"inspection_required_before_delivery\":0,\"include_item_in_manufacturing\":1,\"is_sub_contracted_item\":0,\"published_in_website\":0,\"__run_link_triggers\":1,\"item_code\":\"test1\",\"gst_hsn_code\":\"310100\"}"
},
"freeze": true,
"headers": {},
"error_handlers": {},
"url": "/api/method/frappe.client.save",
"request_id": "64e2f0ba-b1fe-4172-8b95-1882a600c9e3"
}
Response Data
{
"exception": "AttributeError: variants",
"exc_type": "AttributeError",
"_exc_source": "ecommerce_integrations (app)"
}