title: 502 bad gateway error with Stripe webhooks
body: <p>I am getting 502 bad gateway error in webhooks for test stripe account. Whenever a payment related event is fired we are handling webhook in our application.
  Sometime it works, but most of the time it throws 502 error for the same code.
  In Stripe documentation it is mentioned that it is because of stripe server and is rare but in our application it is coming very frequently. 
  We had tried debugging our code but there is no issue and the same webhook events work on retries.</p>