From c1d65305ce36d6ace95fc4ecb9cf716b03d65f1c Mon Sep 17 00:00:00 2001 From: "Alex Rattray (Stripe)" Date: Wed, 13 Feb 2019 19:09:17 -0800 Subject: [PATCH 1/2] Clarify that automatic network retries occur for most api errors --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7727611492..233a2e8dd0 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ if (process.env.http_proxy) { ### Network retries -Automatic network retries can be enabled with `setMaxNetworkRetries`. This will retry requests `n` times with exponential backoff if they fail due to connection or conflict errors. [Idempotency keys](https://stripe.com/docs/api/idempotent_requests) are added where appropriate to prevent duplication. +Automatic network retries can be enabled with `setMaxNetworkRetries`. This will retry requests `n` times with exponential backoff if they fail due to connection errors or most api errors. [Idempotency keys](https://stripe.com/docs/api/idempotent_requests) are added where appropriate to prevent duplication. ```js // Retry a request once before giving up From c72b7f0a2004c95967b0b0d9450bd2f0f3d77f1e Mon Sep 17 00:00:00 2001 From: "Alex Rattray (Stripe)" Date: Wed, 13 Feb 2019 20:01:25 -0800 Subject: [PATCH 2/2] Adopt stripe-php's verbiage --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 233a2e8dd0..af66e56c8f 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ if (process.env.http_proxy) { ### Network retries -Automatic network retries can be enabled with `setMaxNetworkRetries`. This will retry requests `n` times with exponential backoff if they fail due to connection errors or most api errors. [Idempotency keys](https://stripe.com/docs/api/idempotent_requests) are added where appropriate to prevent duplication. +Automatic network retries can be enabled with `setMaxNetworkRetries`. This will retry requests `n` times with exponential backoff if they fail due to an intermittent network problem. [Idempotency keys](https://stripe.com/docs/api/idempotent_requests) are added where appropriate to prevent duplication. ```js // Retry a request once before giving up