title: Unexpected Error Google Apps Script Fetch
body: <p>I get an "Unexpected Error" from the following function:</p>
  
  <pre><code>function getBomgarFeedbackXML(){
    var url = "https://help.tradingtechnologies.com/api/reporting.ns?" + 
              "username=xxxxxx&amp;password=xxxxxx&amp;generate_report=SupportCustExitSurvey&amp;" + 
              "start_date=2000-01-01&amp;duration=0&amp;report_type=rep&amp;id=all";
    var response = UrlFetchApp.fetch(url).getContentText();
    Logger.log(response);
    return(Xml.parse(response, true));
  }
  </code></pre>
  
  <p>The line that causes the error is:</p>
  
  <pre><code>var response = UrlFetchApp.fetch(url).getContentText();
  </code></pre>
  
  <ol>
  <li>I am able to fetch the URL programatically using other scripting languages, such as python</li>
  <li>I have tried fetching the URL in my browser which I was able to do successfully</li>
  <li>I can fetch "<a href="http://www.google.com" rel="nofollow noreferrer">http://www.google.com</a>" from Google apps script successfully</li>
  <li>I get the following warning when navigating to the URL in chrome, could this be related to the issue ?</li>
  </ol>
  
  <p><img src="https://i.stack.imgur.com/DteTL.png" alt="warning message"></p>
  
  <p>Any help is appreciated
  Thanks</p>