Our Stripe webhook handler is intermittently rejecting valid webhook events with a signature mismatch error, causing missed payment confirmations and subscription updates. The root cause appears to be that our server's middleware is occasionally consuming and re-encoding the raw request body before it reaches the signature validation step, altering the payload. We need to ensure the raw buffer is preserved and passed directly to Stripe's constructEvent method without any transformation.