Skip to content
Advertisement

Tag: urlfetch

UrlFetchApp Variable Errors

I’m trying to make a proxy with the UrlFetchApp Google Scripts API. However, with a query string of ?url=”https://google.com”, it gives me this error: But when I substitute param in my code below for https://google.com, the exact value of param, it works perfectly fine for some reason. Here’s my code: Thank you for any help! Answer How about this modification?

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