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
We've had a Browser-based web application live and in production for about 8 months now and all the sudden without any code changes, new versions built/deployed, etc, our connection to Google Sheets seems to have broken.
Some context of the app: a table displaying many rows of various types of String data, nothing crazy here. We are using DataTables to display this data in a "pretty" way and have an "export to google sheet" button for users to export and edit this data locally, etc.
Error message we're seeing in the console:
Uncaught (in promise) TypeError: Cannot read property 'Zi' of undefined at handleSheetsAuth (sheets.oauth.js:58)
Below is the function inside sheets.oauth.js that is causing the error, line 58 is the line:
"if(!signInStatus || !gapi.auth2.getAuthInstance().currentUser.Ab.Zi.scope.toString().includes(SCOPES)) {"
`
async function handleSheetsAuth(headerData, bodyData, pageName) {
let signInStatus = await gapi.auth2.getAuthInstance().isSignedIn.get();
if(!signInStatus || !gapi.auth2.getAuthInstance().currentUser.Ab.Zi.scope.toString().includes(SCOPES)) {
let signedIn = await gapi.auth2.getAuthInstance().signIn();
}
Expected Behavior
We've had a Browser-based web application live and in production for about 8 months now and all the sudden without any code changes, new versions built/deployed, etc, our connection to Google Sheets seems to have broken.
Some context of the app: a table displaying many rows of various types of String data, nothing crazy here. We are using DataTables to display this data in a "pretty" way and have an "export to google sheet" button for users to export and edit this data locally, etc.
Error message we're seeing in the console:
Uncaught (in promise) TypeError: Cannot read property 'Zi' of undefined at handleSheetsAuth (sheets.oauth.js:58)
Below is the function inside sheets.oauth.js that is causing the error, line 58 is the line:
"if(!signInStatus || !gapi.auth2.getAuthInstance().currentUser.Ab.Zi.scope.toString().includes(SCOPES)) {"
`
async function handleSheetsAuth(headerData, bodyData, pageName) {
let signInStatus = await gapi.auth2.getAuthInstance().isSignedIn.get();
if(!signInStatus || !gapi.auth2.getAuthInstance().currentUser.Ab.Zi.scope.toString().includes(SCOPES)) {
let signedIn = await gapi.auth2.getAuthInstance().signIn();
}
}
`
Thanks all,
Mike
The text was updated successfully, but these errors were encountered: