#danboyle8637
1 messages · Page 1 of 1 (latest)
Don't worry, webhooks have a lot of little tough spots that seem like they shouldn't be that hard
What are you getting stuck on?
Sorry I didn't finish my message before hitting enter... I updated the post
Hello 👋
Taking over here
Apologies for the delay
Ideally, you'd kick off the DB operation asynchronously and handle it separately (after you respond with a 200).
@glossy depot Okay... so you don't handle errors. Because if you already respond with a 200... you can't also respond with any errors that happen. I guess you can use a queue or something to let a different service know about the error.
But essentially... no error handling. right?
Correct, because if you attempt to handle the errors and delay responding to Stripe accidentally, Stripe will timeout at some point and consider it a delivery failure and then retry it at a later time.
Which will cause larger issues
ok... thanks for the help!