Woo commerce set up

I have set up a woo commerce site and integrated to ERP next as per https://docs.erpnext.com/docs/user/manual/en/erpnext_integration/woocommerce_integration

I can not get it success.

problem is I have multi tenant via port.

but endpoint shows something like below.
http://server ip/api/method/erpnext.erpnext_integrations.connectors.woocommerce_connection.order

but my site is like

http://server ip:port

is that a reason to not to connect?

Hi, Any one like to help me. My current freelancers are does not know much about this.

All treads pointed to “check the log” slogan.

I know this is miss match for data fields

But I do nor know how to find those mismatches.

Any one like to help me on this and I am willing to pay.

Which version of erpnext you are currently on.

Try chaning this

url = frappe.request.url

to:

url = frappe.request.scheme + '://' + frappe.request.host

If it works send a PR to erpnext branches.

I am using and tried with V12

now getting like this in webhook

image

Delivery URL I am getting from erp next is as follows

https://serverIP/api/method/erpnext.erpnext_integrations.connectors.woocommerce_connection.order

@Sanath_Udayawansa2

In your bench that received the webhook, can you run the following and check the output:

grep -H webhook_error logs/*

This will simply go through all your bench’s log files and find the error from the webhook. That might be able to give you a reason why the request failed with a 500.

If that doesn’t return anything, then you might want to look at the last few updated error logs manually.

image

Nothing there

Search for “WooCommerce Error”

image

Would you tell me exact cmd

grep -H "WooCommerce Error" logs/*

I can’t help you in with woocommerce. I don’t have woocommerce or wordpress.

Ok that is bad luck for me.

Any one would like to help me on this please…