#Wik-Error

1 messages · Page 1 of 1 (latest)

tired shoal
#

Hi there, 500 is response code indicates that there's an internal server error.

#

When you receive a 500, it means Stripe can't process the request due to internal problem, it doesn't mean that the API is disabled.

hasty hare
#

Yeah, sure. But I'm asking - if our endpoint that consumes your webhooks returns 5xx, how soon our API is considered to be disabled? After one 5xx response or more?

tired shoal
#

Ah, it's your webhook endpoint which returns 500

hasty hare
#

Yes, we're planning this big migration that will cause it to 5xx for some time and we want to understand how it'll affect the Stripe webhooks

tired shoal
#

Stripe will continue webhook retry for up to 3 days, and you will also receive a email from Stripe telling you that your webhook endpoint is not working.

hasty hare
#

Do you know how many times it'll retry?

tired shoal
#

The delivery attempt is performed with an exponential back off, so we don't know exactly how many times.

hasty hare
#

When does Stripe consider our API to be disabled?

tired shoal
#
if an endpoint has not responded with a 2xx HTTP status code for multiple days in a row. ```
#

You can configure another webhook endpoint while performing the migration, so that the other webhook endpoint can still receive the webhook events.

hasty hare
#

So a single 5xx or a number of 5xx in a row will not cause the endpoint to be considered disabled. But lack of 2xx over a period of a few days will do it?

tired shoal
#

Stripe is expecting 200 responses. So if your server is responding with any non-200 response (3xx. 4xx or 5xx) for multiple days in a row, it'll be disabled.

hasty hare
#

Got i, thank you.

tired shoal
#

no problem