Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8870357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:42:23+00:00 2026-06-14T17:42:23+00:00

I get an Unexpected Error from the following function: function getBomgarFeedbackXML(){ var url =

  • 0

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();
  1. I am able to fetch the URL programatically using other scripting languages, such as python
  2. I have tried fetching the URL in my browser which I was able to do successfully
  3. I can fetch “http://www.google.com” from Google apps script successfully
  4. I get the following warning when navigating to the URL in chrome, could this be related to the issue ?

warning message

Any help is appreciated
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T17:42:24+00:00Added an answer on June 14, 2026 at 5:42 pm

    The last bit with the untrusted certs is the big clue here. Seems like the SSL cert associated with ‘help.tradingtechnologies.com’is not valid or signed by a trusted CA per the Google Data Centers (from where the UrlFetch calls originate).

    To work around this try this line of code instead of your UrlFetch call. Note the additional option for validateHttpsCertificates documented here.

    var response = UrlFetchApp.fetch(url, {'validateHttpsCertificates':false}).getContentText();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the following script I get an error: syntax error: unexpected end of file
In running this on index.html, I get the following error: Uncaught SyntaxError: Unexpected token
If I run the following code from a terminal, I get a helpful error
I'm trying to get JSON data from facebook using the following code: var getFriends
chrome.cookies.get({url:http://www.dahotre.com, name:userid}, function(){}) shows undefined in the console. If I skip the optional empty
See also SO 1664677 I get this error 2: Syntax error: ( unexpected when
I get an error that says Parse error: syntax error, unexpected T_PRIVATE in E:\PortableApps\xampp\htdocs\SN\AC\ACclass.php
I can't figure out why I get this error: Parse error: syntax error, unexpected
//Get width and resize another element $(document).ready(function() { function ResizeSearch(GridID, SearchID) { var eleWidth
I have the following code: $.ajax({type: 'get', mode: 'abort', dataType: 'json', url: 'http://localhost/1.php', data:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.