0

Today, the Google script has stopped representing the line normally. In case of occurrence of a line "com." or "org." - substring is replaced by a certain class "(class)". How to fix the problem?

function myFunction2() {
   var t = "testcom.io";
   t = t + '1';
   t=t;
}

screenshot from editor

The logger shows the result as well as you do. But during the debugging, the value of the variable T changes. Because of this error, URL Feth does not work. A full script was written a few months ago and worked until today.

You can look error on the next screenshot. We have var url = 'api.intercom.io';; When we try run function we see

error 406

and message where var url is changed to api.intercom.io';. In case of occurrence of a line "com." or "org." - substring is replaced by a certain class "(class)" or symbols .

function myFunction3() {
  var url = 'https://api.intercom.io';
  var response = UrlFetchApp.fetch(url,options);
  Logger.log(response.getContentText());
}

look at screenshot

3
  • 1
    Kindly fix your code typo and provide code where you're using the substring Commented Mar 14, 2018 at 9:09
  • My bad, thx, done Commented Mar 14, 2018 at 9:11
  • Related: stackoverflow.com/q/52231226/1595451 Commented Jul 22, 2020 at 1:19

1 Answer 1

0

I think that test(class) is not the value of t rather that's the class to which this particular t variable belongs.

You can turn your function into something like this : enter image description here

Then check the log to see value of t enter image description here

Let me know if you need anymore help.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.