Unexpected error on UrlFetchApp.fetch in Google Apps Script using basic authentication
问题 I have the following code in Google Apps Script which retrieves CSV data from a webpage via HTTP using basic authentication and places it into a spreadsheet: CSVImport.gs function parseCSVtoSheet(sheetName, url) { // Credentials var username = "myusername"; var password = "mypassword"; var header = "Basic " + Utilities.base64Encode(username + ":" + password); // Setting the authorization header for basic HTTP authentication var options = { "headers": { "Authorization": header } }; // Getting