0

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?

Sateesh Yemireddi
  • 4,289
  • 1
  • 20
  • 37
Joe
  • 1

1 Answers1

0

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:

Community
  • 1
  • 1
TheMaster
  • 45,448
  • 6
  • 62
  • 85
  • I can confirm that it shows up as expected in the logs. However, the error received when trying to execute `UrlFetchApp.fetch` is `Invalid argument: https://api.inter>` which leads me to believe it isn't just a visual thing. Pretty strange no? – Joe Nov 29 '18 at 14:43
  • @Joe I believe it's still visual. I also think that the error is 406. – TheMaster Nov 29 '18 at 15:17