• Resolved nbanerje

    (@nbanerje)


    I’m getting failures on webhook POST from stripe.

    Bad Request 400

    Here’s what the access log looks like:
    172.30.2.53 – – [31/Oct/2019:19:24:36 +0000] “POST /?wc-api=wc_stripe HTTP/1.1” 400 370 “-” “Amazon CloudFront”

    Not sure why it is saying the request is bad.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rynald0s.a11n

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @nbanerje!

    Have you followed the instructions here to setup the Webhook:

    https://docs.woocommerce.com/document/stripe/#section-3 ?

    Also, please make sure that you select Receive all events when you set up your webhook.

    Cheers!

    Plugin Support Rynald0s.a11n

    (@rynald0s)

    Automattic Happiness Engineer

    Howdy!

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.

    Cheers!

    mvenkadesan

    (@mvenkadesan)

    I have been struggling with the same problem, which persisted even after I followed the steps to set up Webhook accurately. The problem turns out to be that Amazon CloudFront and Stripe don’t play well together. When setting up the CloudFront CDN, you had to provide a direct (non-CDN) access to your page as well. For example, I run https://www.thekokuin.com that is served through CloudFront but https://thekokuin.com (without the www) points to the direct server. You should provide the direct server address in order for webhooks to work properly. Otherwise, CloudFront does not know how to respond. It may be possible to configure CloudFront to deal with the webhook, but I did not bother.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stripe Webhook Bad Request’ is closed to new replies.