Skip to content

Commit 0d29aea

Browse files
Update README.md to document network error retry capability
Co-authored-by: tiwarishubham635 <[email protected]>
1 parent 6ecc877 commit 0d29aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const client = require('twilio')(accountSid, authToken, {
107107

108108
### Enable Auto-Retry with Exponential Backoff
109109

110-
`twilio-node` supports automatic retry with exponential backoff when API requests receive an [Error 429 response](https://support.twilio.com/hc/en-us/articles/360044308153-Twilio-API-response-Error-429-Too-Many-Requests-). This retry with exponential backoff feature is disabled by default. To enable this feature, instantiate the Twilio client with the `autoRetry` flag set to `true`.
110+
`twilio-node` supports automatic retry with exponential backoff when API requests receive an [Error 429 response](https://support.twilio.com/hc/en-us/articles/360044308153-Twilio-API-response-Error-429-Too-Many-Requests-) or encounter network errors (such as `ECONNRESET`, `ETIMEDOUT`, or `ECONNABORTED`). This retry with exponential backoff feature is disabled by default. To enable this feature, instantiate the Twilio client with the `autoRetry` flag set to `true`.
111111

112112
Optionally, the maximum number of retries performed by this feature can be set with the `maxRetries` flag. The default maximum number of retries is `3`.
113113

0 commit comments

Comments
 (0)