title: Connect Twilio wtih Google Apps Script
body: <p>I followed this tutorial from the GAS team.
  <a href="https://developers.google.com/live/shows/11404657/" rel="nofollow">Adding voice and SMS to Google Apps using Twilio and Apps Script </a>
   However, when I modify the <a href="https://www.twilio.com/docs/api/twiml" rel="nofollow">TwiML as per the Twilio Docs</a> to add <code>&lt;Redirect&gt;</code> upon timeout, I get an "Application Error". </p>
  
  <pre><code>&lt;Response&gt;
     &lt;Gather action="https://script.google.com/macros/s/SCRIPT_ID/exec" numDigits="1" timeout="10"&gt;
       &lt;Say&gt;Welcome to Yard Stars&lt;/Say&gt;
       &lt;Say&gt;To schedule a Sprinkler Service visit, press 1.&lt;/Say&gt;
       &lt;Say&gt;To discuss a new Sprinkler System, press 2.&lt;/Say&gt;
       &lt;Say&gt;To speak with someone in accounting, press 3.&lt;/Say&gt;
     &lt;/Gather&gt;
     &lt;Say&gt;Sorry, I didn't get your response.&lt;/Say&gt;
     &lt;Redirect method="GET"&gt;https://script.google.com/macros/s/SCRIPT_ID/exec&lt;/Redirect&gt;
  &lt;/Response&gt;
  </code></pre>
  
  <p>One thing that I noticed is that GAS is sending back "Transfer-Encoding Chunked" which Twilio does not support.
  However it appears to only effect the Redirect Call.<br>
  Any idea of a workaround how I can make a Redirect call to an Apps Script?</p>