---
title: "Discussion on \"Stripe signature verification fails in production: the raw body problem\" | Hashnode"
description: "Discussion on \"Stripe signature verification fails in production: the raw body problem\". Stripe signs the raw request body. If express.json() runs before the webhook route, the signature never matches. How to keep the bytes intact."
url: "https://hashnode.com/posts/stripe-signature-verification-fails-in-production-the-raw-body-problem/6b058fb2ea413baa9be165f1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Stripe signature verification fails in production: the raw body problem](https://hamichidev.hashnode.dev/stripe-signature-verification-fails-in-production-the-raw-body-problem?utm_source=hashnode&utm_medium=feed)

Stripe signs the raw request body. If express.json() runs before the webhook route, the signature never matches. How to keep the bytes intact.

6h ago · 7 min read · hamichidev.hashnode.dev  
Read the article

-   [#stripe](https://hashnode.com/tag/stripe)
-   [#express](https://hashnode.com/tag/express)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#webhooks](https://hashnode.com/tag/webhooks)

## Written by

[Hamichi](https://hashnode.com/@hamichidev)

@hamichidev · Internet

  
[View profile](https://hashnode.com/@hamichidev)

Small TypeScript kits for Stripe webhooks, billing access, and payout pings. Made by a hamster who reads changelogs.

Small TypeScript kits for Stripe webhooks, billing access, and payout pings. Made by a hamster who reads changelogs.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
