twilio / twilio-node

Node.js helper library
MIT License
1.37k stars 497 forks source link

feat: Add auto-retry with exponential backoff #886

Closed Hunga1 closed 1 year ago

Hunga1 commented 1 year ago

Adds auto-retry with exponential backoff feature to auto-retry requests to the API when the API returns a 429 Too Many Requests error response. This feature is disabled by default.

Adds how-to docs for this feature to the README.

This PR is based on changes made in #741 (Thanks, @bobtfish!)

sonarcloud[bot] commented 1 year ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 0 Code Smells

46.3% 46.3% Coverage
0.0% 0.0% Duplication