#bertrand-glinas_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1411078544041185400
đ Have more to share? Add more 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.
- bertrand-glinas_api, 1 day ago, 25 messages
Hi there, I'm taking a look.
This is likely an issue with how you're handling webhooks but I want to double check things on my end.
hey, just jumping in
so this is a common error with Node integrations sadly due to what some webserver frameworks do
are you using express ?
@graceful orchid pls let me know
i was using express at the beggining, had that error, then i tried to use built-in firebase function wrapper
onRequest
got the same
the body look like this :
id: 'evt_1S1Y8RG6b521LrzeneXF294i',
object: 'event',
api_version: '2023-08-16',
created: 1756496335,
data: {
object: {
id: 'tr_1S1Y8RG6b521LrzeLnkfipMM',
object: 'transfer',
amount: 200,
amount_reversed: 0,
balance_transaction: 'txn_1S1Y8RG6b521LrzeSvZmfBId',
created: 1756496335,
currency: 'cad',
description: null,
destination: 'acct_1S1WpU5gbZXi6Eye',
destination_payment: 'py_1S1Y8R5gbZXi6EyedeUoD4zm',
livemode: false,
metadata: [Object],
reversals: [Object],
reversed: false,
source_transaction: null,
source_type: 'card',
transfer_group: 'acct_1S1WpU5gbZXi6Eye'
}
},
livemode: false,
pending_webhooks: 1,
request: {
id: 'req_urvAyjN7NLslIf',
idempotency_key: 'stripe-node-retry-8383f143-853d-42ed-ba13-638089bfa702'
},
type: 'transfer.created'
}
just stick to express for now, this is a common issue, some recommendations that can fix are listed here: https://docs.stripe.com/webhooks/signature#retrieve-the-raw-request-body
in particular see this one: https://github.com/stripe/stripe-node/issues/341#issuecomment-2342813495
go ahead and implement that, that's the simplest thing
and makes sure your express framework isn't modifying the event body
that should unblock you, its a common error so try the recommendations in the Github Issue