The admin alert had one word in it.
Stripe webhook failed: Error: get
Enter fullscreen mode
Exit fullscreen mode
Not a stack trace, not a field name. Just get .
It was 24 June 2026, and that alert belonged to the first real paying customer of
a home-search subscription product I lead. They had paid for Pro. Stripe had taken the money. Our database still had
them on Free, which meant no Pro alerts, which meant the one thing they had just paid for wasn't happening.
The tests were green. They had been green the whole time. This is the story of why, and of the five lines that fixed it.
The handler that passed every test
The webhook looked like most Stripe webhooks you will find in tutorials, simplified here:
@router . post ( "/webhooks/stripe" ) async def stripe_webhook ( request : Request ) : event = stripe . Webhook . construct_event ( await request . body ( ) , request . headers [ "stripe-signature" ] , settings .…