#gecko-Webhook

1 messages · Page 1 of 1 (latest)

gray night
#

Hi there, can you send me the event ID?

candid jacinth
#

evt_1KnccnDeb8L7gMecNHrvHZwx

#

i think my flow is running fine, and posts the success page, listes to the events, and fulfills my orders...but I'm getting this in the listener errors

#

not sure if it's because it's just testing to the localhost?

#

but the ports all seem to flow fine

gray night
#

I don't see any errors associated in this event, the webhook event was delivered and acknowledged succeesfully.

candid jacinth
#

that's what I see too, other than this from the stripe cli

gray night
#

OK, where do you get the error message?

candid jacinth
#

i think it's just because I have a forward-to localhost

#

instead of the actual webhook URL in the production mode

#

but it seems to be working...should I worry about this?

gray night
#

Have you tested with production webhook endpoint?

candid jacinth
#

i have not

#

just got this working 🙂

gray night
#

I see, I'd suggest you test it again when the production webhook endpoint is ready. The important thing here is that your endpoint should return 200 responses as soon as it can.

candid jacinth
#

i have it at the end of some code that awaits for DB writes, etc...do I need to move it to the top of the handler, and then handle my fulfillment?

#

the samples put it after fulfillment, so not sure if there's a timing element I have to consider, that's this sensitive

gray night
#

Hmm, the DB write could takes time and cause problems. Can you do it async so that it doesn't block the webhook handling?

candid jacinth
#

well that's essentially the same thing....

#

and now that I think about it, I'm getting these errors for each and every event, including the ones that don't block for DB

#

i'll just try on the production webhook

#

btw, I can run test payment transactions on a production webhook, right?

gray night
#

yup, you can do that

candid jacinth
#

ok thx much, have a nice night (or day)

gray night
#

sure, feel free to drop by if you need help!