Closed everttrollip closed 4 years ago
It appears that I had to explicitly add the following three scopes to my google client initialisation in the frontend:
"https://www.googleapis.com/auth/gmail.send",
"https://www.googleapis.com/auth/gmail.readonly",
"https://www.googleapis.com/auth/gmail.settings.basic",
originally I thought that this scope,
https://mail.google.com/
would account for that. Apparently not?
The https://mail.google.com/
scope is likely to cover all Gmail scopes but it is recommended that you do not use broad scopes.
Where exactly are you getting the error? If server-side, it is unlikely to be related to clasp.
This error was happening client side, where I was trying to execute the script with:
client.script.scripts.run(...)
However, after updating the scopes, and ensuring all the scopes in my manifest were also being used in the client, it worked fine again.
Up until now, only I needed to use and execute the scripts. I followed the instructions (a couple of months ago) to set it up properly, and I can deploy and execute functions without problems. I seem to struggle to have other google accounts to execute the same functions though, and getting the following error from Google each time:
A screenshot of this same error in the frontend,
Any chance you might know why or what I am doing wrong? My manifest file:
and my Google client is initialised with the following scopes: