Skip to content

Commit

Permalink
Clarify that automatic network retries occur for most api errors (#567)
Browse files Browse the repository at this point in the history
* Clarify that automatic network retries occur for most api errors

* Adopt stripe-php's verbiage
  • Loading branch information
rattrayalex-stripe authored Feb 14, 2019
1 parent 1f69c43 commit b209c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 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
Expand Down

0 comments on commit b209c82

Please sign in to comment.