You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception: You do not have permission to call SpreadsheetApp.openById. Required permissions: https://www.googleapis.com/auth/spreadsheets
at BBLog_._useSpreadsheet(BBLog:559:34)
at BBLog_(BBLog:212:30)
at getLog(BBLog:101:10)
I've been seeing this message on the stackdriver/execution logs after I started using BBLog code as a library. Trying to figure out why this error message keeps showing up. I have tried to setup oauthScopes on the library and also in the calling script (appsscript.json) but it doesnt seem to help.
The code that seems to be causing the exception is ...
// snippet/******************************************************************************** * Private Methods *****************//** * Allows logging to a Google spreadsheet. Sets the log sheet, creating * one if it doesn't exist * * @param {string} key The spreadsheet key [OPTIONAL, DEFAULT: active spreadsheet] * @param {string} sheetName The name of the sheet * @param {boolean} hideLog */BBLog_.prototype._useSpreadsheet=function(key,sheetName,hideLog){varspreadsheet;if(typeofkey!=='undefined'&&key!==''){spreadsheet=SpreadsheetApp.openById(key);// 👈 this line over here}else{spreadsheet=SpreadsheetApp.getActiveSpreadsheet();}// snippet
I've been seeing this message on the stackdriver/execution logs after I started using BBLog code as a library. Trying to figure out why this error message keeps showing up. I have tried to setup oauthScopes on the library and also in the calling script (
appsscript.json
) but it doesnt seem to help.The code that seems to be causing the exception is ...
My log configuration is ...
The text was updated successfully, but these errors were encountered: