I followed all available integration instructions in https://docs.erpnext.com/docs/user/manual/en/erpnext_integration/woocommerce_integration and configured both ERPnext and woocomerce.
i am in the following versions
Installed Apps
ERPNext: v12.10.1 (version-12)
Frappe Framework: v12.8.1 (version-12)
WooCommerce: 4.4.1
ERPNext and Woocomerce are installed in diferent VMs under Google Cloud.
on order creation, a message is sent but no Sales order is created on ERPNext, I have setup the webhook trigger to “order create” as instructed and turned on the woocomerce debug to get the full error message from erpnext.
the webhook is working and no errors are logged on the woocomerce server side.
the response message says:
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/erpnext_integrations/connectors/woocommerce_connection.py”, line 25, in order
_order(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/erpnext_integrations/connectors/woocommerce_connection.py”, line 40, in _order
order = json.loads(frappe.request.data)
File “/usr/lib/python3.5/json/init.py”, line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not ‘bytes’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 64, in application
response = frappe.api.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/api.py”, line 59, in handle
return frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 24, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 63, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1054, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/erpnext_integrations/connectors/woocommerce_connection.py”, line 27, in order
error_message = frappe.get_traceback()+“\n\n Request Data: \n”+json.loads(frappe.request.data).str()
File “/usr/lib/python3.5/json/init.py”, line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not ‘bytes’
¿Any Ideas ? I would appreciate any help you can provide