MichaelWu
MichaelWu

Reputation: 31

Too Many Requests in sending Bulk Messages using Twilio Message Service

I am getting the error below when I send bulk messages using Twilio Message Service. [HTTP 429] Unable to create record: Too Many Requests

I have around 50 numbers in the sender pool in this Message Service. And I am trying to send about 5K messages at once, some delays are Okay, But the messages couldn't be sent due to this error,

Thanks in advance,

Upvotes: 2

Views: 4610

Answers (1)

philnash
philnash

Reputation: 73027

Twilio developer evangelist here.

A 429 error means that you are exceeding the number of concurrent connections to the Twilio API. By default, this is 100, though it can vary depending on your account.

To counteract this, you should aim to make less than 100 concurrent requests to the API and implement retries with an exponential back off to allow for your other requests to finish.

There is more information on the 429 error here including further links for implementing the above strategies.

Upvotes: 4

Related Questions