使用 Twilio 消息服务发送批量消息时请求过多 [英] Too Many Requests in sending Bulk Messages using Twilio Message Service

查看:41
本文介绍了使用 Twilio 消息服务发送批量消息时请求过多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 Twilio Message Service 发送批量消息时,出现以下错误.[HTTP 429] 无法创建记录:请求过多

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

我在此消息服务的发件人池中有大约 50 个号码.我试图一次发送大约 5K 条消息,有些延迟是可以的,但是由于这个错误无法发送消息,

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,

提前致谢,

推荐答案

Twilio 开发人员布道者在这里.

Twilio developer evangelist here.

429 错误意味着您超出了与 Twilio API 的并发连接数.默认情况下,这是 100,但它可能会因您的帐户而异.

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.

为了解决这个问题,您应该致力于向 API 发出少于 100 个并发请求,并实施指数回退的重试,以允许您的其他请求完成.

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.

此处提供有关 429 错误的更多信息,包括实施上述策略的进一步链接.

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

这篇关于使用 Twilio 消息服务发送批量消息时请求过多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆