Skip to content Skip to sidebar Skip to footer

"attribute Provided With No Value" Error - Urlfetchapp

I have the following error : Attribute provided with no value The error is from line: var content = UrlFetchApp.fetch(url).getContentText(); Here is my code : function getArray

Solution 1:

The getValues() method returns a 2 dimensional array. You are not getting the value out of the inner array.

Currently:

var url = urls[i];

Should be:

var url = urls[i][0];

You need to add the [0] index for the inner array.

Solution 2:

If your suspicion is that urls is not a proper array than you can just console.log(urls) after you define it and see if it is an array or something else.

Or test like this console.log(Array.isArray(urls))

Post a Comment for ""attribute Provided With No Value" Error - Urlfetchapp"