• Resolved jesusginard

    (@jesusginard)


    Hi,

    I have some webhooks set up in order to generate serial numbers for specific orders.

    Today I begun receiving lots of e-mails generated by the webhook related to old orders.

    Has anybody suffered the same thing? Why can this be happening?

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Gerhard Potgieter

    (@kloon)

    Webhook is fired via the WP Cron. The WP Cron relies on traffic to your site to fire, so if you do not have traffic the execution can queue up and then when you all of a sudden get some traffic the queue will start processing again, this can cause delayed delivery of your webhooks.

    Also since WooCommerce 3.5 we now use the new WC_Queue class for delivering Webhooks which has a retry for failed events, so it could be a combination of this and the traffic causing old webhooks to retry much later and then finally being delivered.

    Thread Starter jesusginard

    (@jesusginard)

    But we’re talking about duplicate webhooks, these were fired at their time (months ago).

    I had to pause the webhooks individually in order not to bother customers.

    Was there a database restore done or something like that?

    Thread Starter jesusginard

    (@jesusginard)

    No, nothing. It was completely random. Like a cron job to re-save orders.

    In the webhook script I have a filter that only fires the e-mails when the order was done at checkout. I do this in order to prevent firing e-mails when I update an order. This makes it ever weirder.

    Hello, we encountered some problems when uploading products with software.Could you please help me
    1. WooCommerce pages
    Shop base: Page not set
    Cart: Page not set
    Checkout: Page not set
    My account: Page not set
    Terms and conditions: Page not set
    The Theme
    Name: Abacus Hotel
    Version: 1.5
    The Author URL:
    The Child theme:
    The Parent theme name: Hotel – Melbourne
    The Parent theme version: 3.6
    Parent theme author URL: https://asiames.com/
    WooCommerce support: Not declared
    When we upload new products, we release new products.The new product can be seen in the catalogue.But when I clicked on the new product, I could not see any information.

    @andreavuong

    This is off-topic. Please start a new thread. Also, please ensure that your product has a price set.

    Kind regards,

    @jesusginard

    No, nothing. It was completely random. Like a cron job to re-save orders.

    So…this is interesting. Is your webhook triggered on “Order updated”?

    Thread Starter jesusginard

    (@jesusginard)

    @wbrubaker

    So…this is interesting. Is your webhook triggered on “Order updated”?

    Yes!

    It sounds like this is most likely related to the issue here https://github.com/woocommerce/woocommerce/issues/22087 There is a pull request open against that issue here: https://github.com/woocommerce/woocommerce/pull/22088

    I would expect that PR to be merged into the next update to WooCommerce. Unfortunately, I can not provide an ETA on when that update will be released but you can keep an eye on your available updates or the changelog here: https://github.com/woocommerce/woocommerce/blob/master/CHANGELOG.txt

    Thread Starter jesusginard

    (@jesusginard)

    Thank you!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Webhooks for old orders fired now’ is closed to new replies.