#teriyaki229

1 messages ยท Page 1 of 1 (latest)

final timberBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

undone pulsar
scarlet trail
#

Hello

undone pulsar
#

Hello

scarlet trail
#

Okay so yeah your signature is present

#

Have you logged out the body?

#

Can you show me the full error you received?

#

And can you provide an Event ID that you tested with?

undone pulsar
undone pulsar
#

let me log the body though

scarlet trail
#

What did console.log(req.headers) console.log(req.headers['stripe-signature']) output?

scarlet trail
undone pulsar
#

and the second one outputted undefined

undone pulsar
#
console.log(req.body)

returns:

ReadableStream { locked: false, state: 'readable', supportsBYOB: false }
scarlet trail
#

Looks like you might want something like const sig = req.headers.get('stripe-signature') instead?

undone pulsar
#

but yes i will try that

#

i will let you know in a minute after trying the stackoverflow solution and yours combined

#

and let you know in a minute

#

please hold the thread

scarlet trail
#

Sure

undone pulsar
#

It works!

#

Man this NextApiRequest was the one to blame iguess

#

and using await req.text() instead of buffer too

#

made it work

#

thank you

#

๐Ÿ™‚

#

i really appreciate it

#

thank you