#elshan magsudov

1 messages · Page 1 of 1 (latest)

warm heartBOT
stuck sleet
#

Hi 👋

Can you share the text of the error message you are receiving?

spare heart
#

Hi

stuck sleet
#

Screen shots are not very useful here. Could you copy the text and place it between three ` marks for code formatting?

supple sparrow
#

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.

stuck sleet
#

@supple sparrow please don't jump in other peoples' threads

supple sparrow
#

this is the same thread, I from elshan company

stuck sleet
#

But your question appears entirely separate

spare heart
#

It’s the same question. I might have put it the wrong way

#

Edrain is our backend dev who works on it

supple sparrow
#

I just added more context

stuck sleet
#

Okay so I'm confused what the actual question is here. Can we start over

spare heart
#

My apologies for the confusion

stuck sleet
#

Okay so Node and Express make Signature Verification especially difficult

#

Because Express automatically parses the request body

supple sparrow
#

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.

stuck sleet
#

Okay then that suggests that your web hosting service may be modifying the request before it gets to your webhook code

supple sparrow
#

hum... I'll pass this information our devops

spare heart
#

@stuck sleet from your experience how could we fix that on our end?