#elshan magsudov
1 messages · Page 1 of 1 (latest)
Hi 👋
Can you share the text of the error message you are receiving?
Screen shots are not very useful here. Could you copy the text and place it between three ` marks for code formatting?
Hi guys, how are you?
I'm having trouble here with node and express
I'm getting this response form stripe sdk:
No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe? https://github.com/stripe/stripe-node#webhook-signing
I tryed to keep a Request.rawBody like some tip in stackoverflow, keeping a Buffer.toString() content, but even with that we getting this error.
node 14
express 4.17
stripe 10.17.0
Obs.: Locally in my machine, using the Stripe Listener, it is working.
@supple sparrow please don't jump in other peoples' threads
this is the same thread, I from elshan company
But your question appears entirely separate
It’s the same question. I might have put it the wrong way
Edrain is our backend dev who works on it
I just added more context
Okay so I'm confused what the actual question is here. Can we start over
This would be the question we need help with if you guys can help
My apologies for the confusion
Okay so Node and Express make Signature Verification especially difficult
Because Express automatically parses the request body
Have you tried copying this code and verifying you can get a valid Stripe event? https://stripe.com/docs/webhooks/quickstart?lang=node
Yes, this code was the base of my code.
Just for knowing, when I use the Stripe listener forwarding the call to our endpoint it works.
Okay then that suggests that your web hosting service may be modifying the request before it gets to your webhook code
hum... I'll pass this information our devops
@stuck sleet from your experience how could we fix that on our end?