title: Stripe webhook is giving status 200, but the NodeJs function is not firing
body: <p>I have a Stripe webhook that fires after a payment is succesfull. The webhook gives a 200 status (succesfull) in the Stripe dashboard log, yet nothing happens in my code. I have a console.log(req.body) in the function, but the console.log is not shown in the CLI. When I console.log outside of the webhook function it does show, so I asume the function isn't being called. This seems strange to me..</p>
  <pre><code>app.use((req, res, next) =&gt; {
      if (req.originalUrl === '/webhook') {
        next();
      } else {
        bodyParser.json()(req, res, next);
      }
    });
  
    app.post('/webhook', (req, res) =&gt; {
      let sig = req.headers[&quot;stripe-signature&quot;];
  
      try {
          let event = stripe.webhooks.constructEvent(req.rawBody, sig, endpointSecret);
         
          res.status(200).end()
  
          // Do something with event
          console.log(req.bodyRaw)
          console.log(event);
      }
      catch (err) {
          console.log(err);
          res.status(400).end()
      }
  });
  </code></pre>
  <p>I use Google cloud functions in combination with Node JS/Express.</p>