Support » Plugin: WooCommerce » Woo webhooks don’t send HTML Raw Body content

  • Resolved vanetreg

    (@vanetreg)



    Hi,

    I tested it on both Woo 3.2.4 and previous and WP 4.9 and prev, issue appears in all cases.
    Requestb.in shows the webhook is triggered but Raw body which should contain the useful info (as JSON) only contains
    webhook_id
    and nothing else.
    I tested 2 Woo webhooks:
    Customer created
    and
    Product updated,
    none of them passes any info in body.
    ( I supposed for example:
    Customer created webhook passes at least username and email when this trigger fired, but now it doesn’t do it this way… )

    I hope this is NOT how it intended to be used… 🙂

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Here are some guides on using webhooks:

    https://docs.woocommerce.com/document/webhooks/
    http://woocommerce.github.io/woocommerce-rest-api-docs/?php#webhooks
    https://growdevelopment.com/woocommerce-webhooks/

    It sounds like something on your site might be causing a conflict with webhooks. So try disabling all plugins except for WooCommerce and switch to a default WP theme while testing.

    • This reply was modified 12 months ago by  Caleb Burks.
    • This reply was modified 12 months ago by  Caleb Burks.
    vanetreg

    (@vanetreg)

    Hi Caleb,

    I’ve already studied all 3 contents you linked, that’s why I could be fairly specific with issue details, but thank you for the answer.

    I was referring to Requestb.in’s test result screenshot on:
    https://growdevelopment.com/woocommerce-webhooks/
    on screenshot
    https://growdevelopment.com/wp-content/uploads/2017/06/webhook-data.png
    you can see Raw body content, but in my case it is only:
    webhook_id=1234 and nothing else…
    What I miss from Woo webhook docs is we can’t figure it out how to set up a specific webhook to send data in its body -using Woo settings area.
    Seeing for example the
    Customer created
    webhook data in Woocommerce settings it should setup there what field values one want to pass via that webhook – or the default should be all what has a real meaning ( in this case: Email and Name )

    What kind of plugins do you think can cause such problems?
    Security, cron job modifying, minification?
    I use iThemes Security but all settings which might disable content from header etc. are not enabled.

    Let me share my opinion:
    Woo team created some huge steps toward allowing most of Woocommerce admins (who are not coders) to be able to use Woo API amd webhooks from admin setting area.
    That would be great if the Team would complete it, so we could set up webhooks better from admin area, without coding ( at least the most common use cases )

    Thanks!

    • This reply was modified 12 months ago by  vanetreg.
    hnaseri

    (@hnaseri)

    any update for this topic? I have exactly the same problem.

    katarinablue

    (@katarinablue)

    I have the same problem, was there a solution?

    vanetreg

    (@vanetreg)

    No, there wasn’t.
    Some Woocommerce webhooks had worked (I mean it sent HTML raw body properly) and some hadn’t.
    I haven’t tested latest WC versions though…

    Plugin Support Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    Please test with the newest versions of WooCommerce and WordPress and ensure that you test with only the WooCommerce plugin enabled.

    Plugin Support Jesse Pearson

    (@jessepearson)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.