Twilio PHP APIを使用してお客様に大量のSMSを送信しています。503 TwilioでSMSを送信しようとしたときにエラーが発生しました
Failed to load resource: the server responded with a status of 503 (Backend fetch failed)
さて私は、これは誤りであるかもしれないと思う:
問題は、私が唯一80st SMSのように送信することができ、その後、私は、サーバーのエラーを得たことです。
私はエコーecho "Sent message to $name
を成功させることができないので、twilioのSMSログでは、200のSMSが送信されたことがわかります。
このエラーの原因は何ですか?
foreach ($usrs as $number => $name) {
try{
$sms = $client->account->messages->create(
// the number we are sending to - Any phone number
$number,
array(
// Step 6: Change the 'From' number below to be a valid Twilio number
'from' => "xxxxxxxxxxx",
// the sms body
'body' => "Hey $name. $text"
)
);
// Display a confirmation message on the screen
echo "Sent message to $name <br>";
}
catch (TwilioException $e) {
die($e->getCode() . ' : ' . $e->getMessage());
}
}
私は1秒ごとに特定のメッセージを送信できると思う。 いくつかのSMSと[check link](https://support.twilio.com/hc/en-us/articles/115002943027-Understanding-Twilio-Rate-Limits-and-Message-Queues)の後に少し遅れを入れてください –