I am setting up WooCommerce to trigger a webhook upon order creation. I have set the webhook's URL as the url of a local web API we have setup for this purpose:
http://localhost:3000/store/orders/new
WooCommerce does trigger the webhook with the correct data payload, but the request is reported as failed in the webhook's logs:
Status: HTTP http_request_failed Es wurde keine gültige URL übermittelt.: Array
which, translated from German, means "no valid URL was passed"
I then later changed the URL to a web-facing deployment of our API (https://xxx.azurewebsites.net/store/order/new), and the webhook was received without any problems by the API.
I am not sure if WC webhook's don't play nice with urls that have a custom port (in my case, port 3000), so I wanted to ask the question on whether this is true and if there is a way to make WC webhooks play nice with a localhost development environment.