This might be a bug in Google Scripts, or perhaps I am doing something wrong. If I include a country suffix com.xx in a string variable, it gets replaced with "(class)". Just "com" is fine, but anything after that triggers this.
Here are my two variables
var VarA = 'https://example.com.au/projects.json' ;
var VarB = 'https://example.com/projects.json' ;
When I debug this, they behave differently. B is fine, but A gets (class) inserted
VarA string "https://example.(class)/projects.json"
VarB string "https://example.com/projects.json"
Update: when I first posted this (13 Nov) this was occurring in all three:
- logger
- debug
- when passed to another function to get that URL
It is now working for logger and when passed to a function. Still occurring in debug mode, but I am guessing this was a bug that was addressed
Request failed for https://example.<?>/projects.json returned code 401.