Feature Request: Add hook for 429 retry logic #936
Labels
status: help wanted
requesting help from the community
type: twilio enhancement
feature request on Twilio's roadmap
Description
Currently, if configured the twilio-node library automatically retries requests when it encounters a 429 error, but there's no way to be notified or modify this behavior.
Proposal
Add an optional onRetry parameter to the twilio() function that accepts a callback to be called whenever a 429 error is encountered. This would allow users to handle or log these errors in a custom way.
Example usage:
I'd be happy to submit a PR to implement this.
The text was updated successfully, but these errors were encountered: