Skip to content
Advertisement

Tag: urlfetch

How can I see the full server response for this API error message in Google Scripts?

I’m getting an error response from the API that I’m using, but Google scripts seems to truncate the message. How can I see the full message in Google scripts? This is the message: Request failed for https://api.myintervals.com/task/ returned code 400. Truncated server response: {“personid”:”180761″,”status”:”Bad Request”,”code”:400,”error”:{“code”:18,”message”:”Validation error has occurred (missing required field/paramet… (use muteHttpExceptions option to examine full response) (line 171,

Advertisement