• Resolved jjpark78

    (@jjpark78)


    we configured a webhook for order.created, and order.updated and then when out server will process order when it’s status is processing (which means customer finished their payment).

    Most of the orders are processed fine, but occasionally the webhook is not called correctly (about 4-5 out of 50 orders show this behavior).

    Looking at the logs, I see
    For the webhook that worked fine, it is called 3 times, as follows

    1. order.created with pending status
    2. order.updated with pending status
    3. order.updated with processing status

    However, if something goes wrong

    1. order.created with pending status
    2. order.updated with pending status
      There are only 2 webhook calls recorded and the
    3. order.updated with processing status is not in the history.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jjpark78

    (@jjpark78)

    2023-09-03T21:07:55+00:00 INFO Array
    (
        [Webhook Delivery] => Array
            (
                [Delivery ID] => 88d9b1f942d41c2fddc84a89b8c87d60
                [Date] => Sep 3, 2023 @ 21:07
                [URL] => <masked>
                [Duration] => 5.51264
                [Request] => Array
                    (
                        [Method] => POST
                        [Headers] => Array
                            (
                                [User-Agent] => WooCommerce/8.0.2 Hookshot (WordPress/6.3)
                                [Content-Type] => application/json
                                [X-WC-Webhook-Source] => <masked>
                                [X-WC-Webhook-Topic] => order.created
                                [X-WC-Webhook-Resource] => order
                                [X-WC-Webhook-Event] => created
                                [X-WC-Webhook-Signature] => MlN9w8rgkLbIugan2fGufVBuwhCEEhWNKFLfOpXVFjI=
                                [X-WC-Webhook-ID] => 5
                                [X-WC-Webhook-Delivery-ID] => 88d9b1f942d41c2fddc84a89b8c87d60
                            )
    
                    )
    
                [Body] => {\"id\":2605,\"parent_id\":0,\"status\":\"pending\",\"currency\":\"USD\",\"version\":\...
    
    2023-09-03T21:07:56+00:00 INFO Array
    (
        [Webhook Delivery] => Array
            (
                [Delivery ID] => c266e932e91fbf7c7e9eb13e702f7de5
                [Date] => Sep 3, 2023 @ 21:07
                [URL] => <masked>
                [Duration] => 0.16733
                [Request] => Array
                    (
                        [Method] => POST
                        [Headers] => Array
                            (
                                [User-Agent] => WooCommerce/8.0.2 Hookshot (WordPress/6.3)
                                [Content-Type] => application/json
                                [X-WC-Webhook-Source] => <masked>
                                [X-WC-Webhook-Topic] => order.updated
                                [X-WC-Webhook-Resource] => order
                                [X-WC-Webhook-Event] => updated
                                [X-WC-Webhook-Signature] => MlN9w8rgkLbIugan2fGufVBuwhCEEhWNKFLfOpXVFjI=
                                [X-WC-Webhook-ID] => 6
                                [X-WC-Webhook-Delivery-ID] => c266e932e91fbf7c7e9eb13e702f7de5
                            )
    
                    )
    
                [Body] => {\"id\":2605,\"parent_id\":0,\"status\":\"pending\",\"currency\":\"USD\",\"version\":\"8.0.2\",\"...
    Thread Starter jjpark78

    (@jjpark78)

    2023-09-03T12:13:05+00:00 INFO Array
    (
        [Webhook Delivery] => Array
            (
                [Delivery ID] => 7bd24954a13224617b4d752484fb6c9c
                [Date] => Sep 3, 2023 @ 12:13
                [URL] => <masked>
                [Duration] => 0.37989
                [Request] => Array
                    (
                        [Method] => POST
                        [Headers] => Array
                            (
                                [User-Agent] => WooCommerce/8.0.2 Hookshot (WordPress/6.3)
                                [Content-Type] => application/json
                                [X-WC-Webhook-Source] => <masked>
                                [X-WC-Webhook-Topic] => order.created
                                [X-WC-Webhook-Signature] => Kta6HHDiiF0z9RUwmllboK3gqb3HID7nNxSFgM2/UgA=
                                [X-WC-Webhook-ID] => 5
                                [X-WC-Webhook-Delivery-ID] => 7bd24954a13224617b4d752484fb6c9c
                            )
    
                    )
    
                [Body] => {\"id\":2603,\"parent_id\":0,\"status\":\"pending\",\"currency\":\"USD\",\"version\":\"8.0.2\",\...
    
    )
    
    2023-09-03T12:13:05+00:00 INFO Array
    (
        [Webhook Delivery] => Array
            (
                [Delivery ID] => 3f64c534e4b531dc09a2cffc95357ed1
                [Date] => Sep 3, 2023 @ 12:13
                [URL] => <masked>
                [Duration] => 0.11965
                [Request] => Array
                    (
                        [Method] => POST
                        [Headers] => Array
                            (
                                [User-Agent] => WooCommerce/8.0.2 Hookshot (WordPress/6.3)
                                [Content-Type] => application/json
                                [X-WC-Webhook-Source] => <masked>
                                [X-WC-Webhook-Topic] => order.updated
                                [X-WC-Webhook-Signature] => Kta6HHDiiF0z9RUwmllboK3gqb3HID7nNxSFgM2/UgA=
                                [X-WC-Webhook-ID] => 6
                                [X-WC-Webhook-Delivery-ID] => 3f64c534e4b531dc09a2cffc95357ed1
                            )
    
                    )
                [Body] => {\"id\":2603,\"parent_id\":0,\"status\":\"pending\",\"currency\":\"USD\",\"version\":\"8.0.2\",\...
    )
    
    2023-09-03T12:14:24+00:00 INFO Array
    (
        [Webhook Delivery] => Array
            (
                [Delivery ID] => da792e79663884bf1961916ebe1f73b5
                [Date] => Sep 3, 2023 @ 12:14
                [URL] => <masked>
                [Duration] => 7.76161
                [Request] => Array
                    (
                        [Method] => POST
                        [Headers] => Array
                            (
                                [User-Agent] => WooCommerce/8.0.2 Hookshot (WordPress/6.3)
                                [Content-Type] => application/json
                                [X-WC-Webhook-Source] => <masked>
                                [X-WC-Webhook-Topic] => order.updated
                                [X-WC-Webhook-Signature] => YRr5/C+rj9mLhrpcHDWG+7y6h2QlljLL87fxjbxIKxg=
                                [X-WC-Webhook-ID] => 6
                                [X-WC-Webhook-Delivery-ID] => da792e79663884bf1961916ebe1f73b5
                            )
    
                    )
                [Body] => {\"id\":2603,\"parent_id\":0,\"status\":\"processing\",\"currency\":\"USD\",\"version\":\"8.0.2\",\...
    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @jjpark78

    Based on the information you’ve shared, it seems that the “order.updated with processing status” webhook is not always being triggered as expected. This could be due to various factors, including server timeout issues, connectivity issues, or even issues with the webhook configuration itself.

    Here are a few troubleshooting steps you can take:

    • The webhook delivery duration varies in your logs. If your server is taking too long to respond, the webhook might timeout. Please check your server’s response time and if necessary, increase the timeout limit.
    • Network issues between WooCommerce and your server might cause intermittent failure of webhooks. Please check your server’s connectivity and ensure it’s stable.
    • Double-check your webhook configuration in WooCommerce. Ensure that “order.updated” webhook is set to trigger when the order status changes to “processing”.
    • Check your server’s error logs around the time the webhook should have fired. This could provide more insight into what might be going wrong.

    Additionally, ensure that your server is configured to handle multiple simultaneous webhook calls, as this could potentially cause issues.

    If you continue to experience this issue, I recommend reaching out to your hosting provider. They may be able to provide more insight into why the webhook might not be firing correctly.

    I hope this provides some clarity on the matter. If you have any other questions or need further assistance, please don’t hesitate to ask.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘webhook for order.updated with processing status is not fired’ is closed to new replies.