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
I have an Apps Script app using this library to makes changes using domain-wide delegation. Right now it can edit Gmail and Calendar ACLs. I'ven noticed weird but intermittent behavior. I will get the below error despite 1) The service being on in GCP 2) the scopes are in the Admin Console in the app's details in the DWD section in Security 3) The scopes are in appscript.json and 4) I ran a script once from the editor to get the "approve this app" popup so I could click yes.
I can delete all the script properties and try again, and it will work, but in the most recent case I had Gmail working but not Calendar. I deleted the script property and Calendar worked but then the Gmail service threw the error!
Disabling caching fixed this it looks like. I'm guessing, but when trying to perform two actions on one user, I would call getService twice, with only the scopes needed for the specific action. Should I have one giant scoped access request that I cache? Or leave caching off?
I also get an ACCESS_TOKEN_SCOPE_INSUFFICIENT error randomly in Java code when trying to access users' calendars from a service account, google APIs are very unstable, and error messages are deceptive. I'm sure I do everything correctly because it works for all users, but then randomly, the API returns an ACCESS_TOKEN_SCOPE_INSUFFICIENT error, my scopes are always the same so I don't understand what is wrong. Google didn't even provide any assistance when we had issues with their API and said that perhaps we incorrectly used their API so it does not make sense to expect that they provide some adequate assistance
I have an Apps Script app using this library to makes changes using domain-wide delegation. Right now it can edit Gmail and Calendar ACLs. I'ven noticed weird but intermittent behavior. I will get the below error despite 1) The service being on in GCP 2) the scopes are in the Admin Console in the app's details in the DWD section in Security 3) The scopes are in
appscript.json
and 4) I ran a script once from the editor to get the "approve this app" popup so I could click yes.I can delete all the script properties and try again, and it will work, but in the most recent case I had Gmail working but not Calendar. I deleted the script property and Calendar worked but then the Gmail service threw the error!
What's going on?
The text was updated successfully, but these errors were encountered: