【发布时间】:2018-03-02 10:32:39
【问题描述】:
我制作了一个控制器,可以将消息发送到传入消息中指定的列表。 当我发送完所有消息后,我想返回一个 TwiML 响应。
但是,如果列表太大,Twilio 似乎会超时。 如果列表包含 10 个数字,则返回响应,如果它包含 40 个数字,则 Twilio 会在仪表板中显示 11200 错误。
总是发送传出消息,它只是失败的响应。
我做过这样的事情:
foreach (var receiver in receivers)
{
try
{
await MessageResource.CreateAsync(
from: new PhoneNumber(SomeGroupName),
to: new PhoneNumber(receiver.Mobile),
body: SomeOutgoingMessage);
}
catch (SomeException e)
{
//Errorhandling
}
}
response.Message("Message sent to all members")
return TwiML(response);
有人知道为什么会这样吗?有没有其他方法可以做到这一点?
【问题讨论】:
标签: c# twilio twilio-api twilio-twiml