#rohith_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1253665286142296084
đ Have more to share? Add details, code, screenshots, videos, etc. below.
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.
- rohith_webhooks, 3 minutes ago, 13 messages
Problem didn't solved
I have triggered payment_intent.success webhook in using stripe cli
still issue is there
Which error are you seeing exactly?
evt_1PU58MCdRI7rcOCIcuze9qLl
this is the event id
Webhook Error: Webhook payload must be provided as a string or a Buffer (https://nodejs.org/api/buffer.html) instance representing the _raw_ request body.Payload was provided as a parsed JavaScript object instead.
Signature verification is impossible without access to the original signed material.
Learn more about webhook signing and explore webhook integration examples for various frameworks at https://github.com/stripe/stripe-node#webhook-signing
Your code is malforming the request payload
Can you share the code you're using?
What framework is this?
node js
I can see it's Node, but is it Express?
yes
Can you share the code where you intialise the Express app?
in main ts file
The likelihood is is that Express is malforming the payload because of some middleware. As per our docs, you need to ensure the route is not parsing the payload:
...
}
https://docs.stripe.com/webhooks?lang=node#verify-official-libraries
still same error
I asked you to share the full code
Can you remove that console.log() on line 14
ok removed
hi! I'm taking over this thread.