Trying to run the following code in excel office script, but it keep returning the "Maximum call stack size exceeded" error
async function main(workbook: ExcelScript.Workbook) {
// Your code here
const cuslocation = "New York"
const endpoint = "http://api.weatherstack.com/current?access_key=****367d8059062daa61b5**********&query="+ colocation;
const response = await fetch(endpoint)
console.log(response. Text());
}
Learning office script, so making this easy api call and trying to log data to the excel sheet.