#derek-webhook-timeout

1 messages · Page 1 of 1 (latest)

celest trellisBOT
torn storm
#

Hey there

#

No 204 should be fine. Are you responding immediately?

#

Or are you performing other actions before responding?

inland bloom
#

We are performing other actions before responding

#

how long is the timeout out of curiousity?

torn storm
#

Quite short

#

You should respond to the webhook first

#

Then perform other actions

inland bloom
#

ok will try that. but in theory returning 200 vs 204 shouldn't affect response time, so maybe something else is going on

torn storm
#

Correct

#

It is the timing of your response that matters here

cinder pilot
#

As a user: Many many developers use a "queue" - we just capture the webhook, and add it into a queue for asynchronous processing. really, the only valid response to a webhook is "yes, I got it" or "nope, I didn't".