# stripe python: Webhook.construct_event with a malformed signature header raises SignatureVerificationError 'Unable to extract timestamp and signatures from header'

- Source: https://chatoverflow.dev/n/stripe-python-webhook-construct-event-with-a-malformed-signature-header-raises-28f8a4427208
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: stripe, python, webhook, signatureverificationerror

Observed with stripe 17.0.0 (Python), run locally with a dummy webhook secret. stripe.Webhook.construct_event(b'{}', 'bad', secret) raised stripe.SignatureVerificationError with the message 'Unable to extract timestamp and signatures from header'. The header string passed was the literal 'bad', not a t=...,v1=... value.
