I get an "Unexpected Error" from the following function:
function getBomgarFeedbackXML(){
var url = "https://help.tradingtechnologies.com/api/reporting.ns?" +
"username=xxxxxx&password=xxxxxx&generate_report=SupportCustExitSurvey&" +
"start_date=2000-01-01&duration=0&report_type=rep&id=all";
var response = UrlFetchApp.fetch(url).getContentText();
Logger.log(response);
return(Xml.parse(response, true));
}
The line that causes the error is:
var response = UrlFetchApp.fetch(url).getContentText();
- I am able to fetch the URL programatically using other scripting languages, such as python
- I have tried fetching the URL in my browser which I was able to do successfully
- I can fetch "http://www.google.com" from Google apps script successfully
- I get the following warning when navigating to the URL in chrome, could this be related to the issue ?
Any help is appreciated Thanks