BizzAppDev-Systems / connector-woocommerce

GNU Affero General Public License v3.0
1 stars 0 forks source link

webhooks in woocommerce throws error 404 #75

Open zaburiro opened 1 month ago

zaburiro commented 1 month ago

Great module and best part its free, thanks for you hard work. I tried to configure webhooks in woocommerce as shown in module's webhooks settings but woocommerce throws error 404.

if Delivery Url is https://mywebsite.com/create_product/woo_webhook (Error: Delivery URL returned response code: 404)

Delivery Url: https://mywebsite.com/create_product/woo_webhook/xxxxxxxxxtoken (Error: Delivery URL returned response code: 400)

bizzappdev commented 1 month ago

Thank you for the report. Can you share the log of Odoo, that will give more clarity about the issue

zaburiro commented 1 month ago

odoo.log

zaburiro commented 1 month ago

but the error show on woocommerce webhooks page

vois-asakry commented 1 month ago

i have the same issue

2024-05-22 22:12:48,522 614 INFO odood werkzeug: 45.79.207.52 - - [22/May/2024 22:12:48] "POST /update_product/woo_webhook/f1ff288b-ac96-45e7-a35c-6a0dafacdf87 HTTP/1.1" 400 - 8 0.003 0.013 2024-05-22 22:12:48,726 614 INFO odood werkzeug: 45.79.207.52 - - [22/May/2024 22:12:48] "POST /update_product/woo_webhook/f1ff288b-ac96-45e7-a35c-6a0dafacdf87 HTTP/1.1" 400 - 8 0.003 0.012 2024-05-22 22:13:04,931 614 INFO odood werkzeug: 156.211.199.251 - - [22/May/2024 22:13:04] "POST /web/dataset/call_kw/woo.backend/web_search_read HTTP/1.1" 200 - 2 0.001 0.003 2024-05-22 22:13:06,315 614 INFO odood werkzeug: 156.211.199.251 - - [22/May/2024 22:13:06] "POST /web/dataset/call_kw/woo.backend/web_read HTTP/1.1" 200 - 16 0.004 0.016 2024-05-22 22:13:10,527 614 INFO odood werkzeug: 156.211.199.251 - - [22/May/2024 22:13:10] "POST /web/dataset/call_kw/ir.model.fields/name_search HTTP/1.1" 200 - 4 0.001 0.005 2024-05-22 22:07:41,362 614 INFO odood odoo.addons.base.models.ir_cron: Starting job Automatic Workflow Job. 2024-05-22 22:07:41,369 614 INFO odood odoo.addons.base.models.ir_cron: Job done: Automatic Workflow Job (0.007s). 2024-05-22 22:08:42,420 614 INFO odood odoo.addons.base.models.ir_cron: Starting job Automatic Workflow Job. 2024-05-22 22:08:42,426 614 INFO odood odoo.addons.base.models.ir_cron: Job done: Automatic Workflow Job (0.006s). 2024-05-22 22:08:42,430 614 INFO odood odoo.addons.base.models.ir_cron: Starting job Jobs Garbage Collector. 2024-05-22 22:08:42,432 614 INFO odood odoo.addons.base.models.ir_cron: Job done: Jobs Garbage Collector (0.002s). 2024-05-22 22:09:43,505 614 INFO odood odoo.addons.base.models.ir_cron: Starting job Automatic Workflow Job. 2024-05-22 22:09:43,512 614 INFO odood odoo.addons.base.models.ir_cron: Job done: Automatic Workflow Job (0.006s).

bizzappdev commented 1 month ago

/update_product/woo_webhook/

Seems like HTTPS problem

[21/May/2024 06:52:27] code 400, message Bad request version ('À\x14À') - - - proxy is not used properly or woocommerce is communicating directly to Odoo over https