How to stop UrlFetchApp from turning "com." substring into (class)

54 Views Asked by At

I ran an issue when trying to match a request to api.intercom.com.

api.intercom.io consistently gets changed to api.inter(class) when set as a variable and used in the UrlFetchApp call but it displays as api.intercom.io in the Logger.log output.

Screenshots:

code

Logger.log-output

Debugger-output

Is there a way to stop this from happening?

1

There are 1 best solutions below

2
On

It only looks "as if" com.io is changed to (class). The error is just visual and has nothing to do with why Urlfetch is NOT working. Use Stackdriver logging: console.log() for accurate representation of the string.

Related Questions: