Woocommerce Webhook Issues
-
Hello! I’m hoping somebody can point me in the right direction as I now spent hours just trying to debug this with no luck. I have a Woocommerce webhook created that has worked great until about 2 days ago. Suddenly, I noticed webhook-delivery logs were showing errors showing the webhook “body” that is supposed to include the entire payload of order details which are then being sent to my custom app api endpoint was showing the below value instead of the order details:
{\"code\":\"rest_no_route\",\"message\":\"No route was found matching the URL and request method.\",\"data\":{\"status\":404}}
I have looked at every possible server log I can, tried to find the best ways to debug rest api requests, nothing seems to be pointing me in the right direction. It’s almost as if the webhook tries to run and at that time, it tries to grab the order information the use in the “body” by using the WP rest api but it is not available so it’s as if the route the webhook uses to get the order payload is not available or responding so the value of “body” is the error from the WP Rest API which is then sending to my custom app endpoint and failing because it’s missing all the order data.
- You must be logged in to reply to this topic.