title: Twilio Functions Error 20429 - Too many requests multiple sms messages
body: <p>I am using Twilio functions and Programable SMS to send SMS Messages to a list of numbers form my iOS App. There are just over 100 mobile numbers (113 on the time of this error) in the list. Most of these messages send but then the function says that it timed out after 502ms.</p>
  
  <p>I am using the example code from Twilio to send to group messages (that I have copied below) and making a URLSession request from my iOS app.</p>
  
  <p>Is there a way that I can fix this issue so that I can send to this fairly large list of phone numbers or make the function run for longer?</p>
  
  <p>Thank you very much for your help.
  Tom</p>
  
  <p>Request:</p>
  
  <pre><code>let messagesPhoneNumberString = [+447987654321abc,+447123789456def,+447123456789ghi]
  "https://myfunction.twil.io/send-messages?phoneAndID=\(messagesPhoneNumberString)&amp;globalID=\(current globalID)"
  </code></pre>
  
  <p>My Twilio Function Code:</p>
  
  <pre><code>exports.handler = function(context, event, callback) {
  
      let phoneAndIDString = event['phoneAndID'];
      let globalID String = event['globalID'];
      let numbersArray = phoneAndIDString.split(",");
  
  Promise.all(
    numbersArray(number =&gt; {
  
        let phoneNumberSplit = "+" + number.slice(1, 13);
        let idSplit = number.slice(13);
  
        console.log('Send to number: ' + phoneNumberSplit + ' - with ID: ' + idSplit);
  
      return context.getTwilioClient().messages.create({
        to: phoneNumberSplit,
        from: 'Example',
        body: 'Hello World: ' + idSplit
      });
    })
  )
    .then(messages =&gt; {
      console.log('Messages sent!');
      callback(null, response);
    })
    .catch(err =&gt; console.error(err));
      };
  </code></pre>