#bertrand-glinas_webhooks

1 messages ¡ Page 1 of 1 (latest)

shut willowBOT
#

👋 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.

sage matrix
#

Hi there, I'm taking a look.

graceful orchid
#

ok

#

yeah?

sage matrix
#

This is likely an issue with how you're handling webhooks but I want to double check things on my end.

deep bronze
#

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

graceful orchid
#

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'
}

deep bronze
#

go ahead and implement that, that's the simplest thing

#

and makes sure your express framework isn't modifying the event body

graceful orchid
#

alright i'll take a look

#

thanks

shut willowBOT
deep bronze
#

that should unblock you, its a common error so try the recommendations in the Github Issue