I am getting this error when I run a script from Google Apps Script:
The OAuth identity of this script has been deleted or disabled. This may be due to a Terms of Service violation.
I have deleted and recreated the project and it works for a while but then the error re-occurs. I have also checked the bound project but there are no new Terms of Service agreements for me to acknowledge/accept (tried all the proposed solutions to this question).
Is there any way to get more details on what could be causing this issue or any other suggestions?
Related
I tried to change the version of my gmail addon before submitting it but I keep getting this error Failed to get details of the deployment ID.
Steps that I've done:
I managed to add a version to the submit form
My submission got rejected
I made some changes to the addon's code
I tried to change the addon's deployment ID to the new version but I got this error instead
This kind of error usually appears in case of a wrong Deployment ID
Common causes are e.g. spaces introduced before or after the Id.
Another possibility is that the Apps Script project is bound, while for a Google Workspace Add-on it needs to be a standalone script.
It is also possible that MarketSpace SDK does not find the script because the owner of the GCP project and the Apps Script file are not the same person.
While the following behavior would result in a different error than yours - for completion sake:
You also need to make sure that the Apps Script is tied to a Standard GCP project - namely the one to which the Add-On belongs, and that it is the only Apps Script project bound to this GCP project
I'm attempting to use a script in a google sheet I've used in the past, and suddenly while trying to make a new sheet with this code, I'm getting a new error that is seemingly impossible to bypass.
"Sign in with Google temporarily disabled for this app
This app has not been verified yet by Google in order to use Google Sign In."
Normally, or at least every time I have used this script in the past, there has been an "advanced" and "continue anyway" option.
"This app isn't verified yet
"Advanced > Continue to Untitled Project (Unsafe)"
This is the code.gs script [gitlab link], how can I bypass this saftey check, and continue using this script as needed?
And for reference, these are the instructions for the whole project on git lab,
Unfortunately, there's no direct solution for the issue you are encountering.
According to the issue from Issue Tracker, the error you are encountering may be due to this cause:
an external user runs the script with sensitive scopes
A possible solution:
run the script from Incognito Mode and remove the project's permissions from myaccount.google.com/permissions
Ultimately, if this still doesn't solve your issue you can star the issue on Issue Tracker here.
My Google Apps Script time-based Trigger is failing with error:
Service unavailable: Gmail (line XXX, file "XXXXXXXXXXXX")
The code gets emails from a Google Sheet and send emails to them.
My spreadsheet has more than 8k+ records.
Initially I suspected error due to data loading, but later I realized that it is not due to load as my friend is able to run the script smoothly without any error from her gmail account.
I have checked my gmail storage limit and freed up.
Cleared browser history and cookies.
Please help this issue resolved and let us know some precautions or steps to prevent this happening in future.
I get an error "The OAuth identity of this script has been deleted or disabled. This may be due to a Terms of Service violation" whenever I try to execute a script that gives me daily updates from my calendar into a spreadsheet.
I have searched for solutions and found this
Thread that suggests "The solution: - open the script - click Resources > Cloud Platform project - click on the bound project" and then I will be able to accept the new TOS.
When I look at my menus, "Resources" only gives me dropdowns for Libraries and Advanced Google Services. This is a script and isn't tied to a Cloud project.
What would you suggest I do to overcome this issue? (For reference, I believe the issue started appearing in April 2018).
I'm using Apps Script and the OAuth2 for Apps Script Library to connect to a couple Google advertising platforms. Basically, each account team has a Google sheet that automatically gets their campaign data every morning. I've got a couple of these sheets up and running already, but when I try to set up this most recent sheet I'm getting the "Authorization is required to perform that Action" at the very end of the OAuth process. I'm able to start the OAuth dialogue, select an account to authorize, but then I run into the error.
I authorized the script in the script editor before I ran it, and all of my OAuth credentials are correct. I've even deleted and re-created the scripts. The other sheets running the same scripts are still working fine.
What's going on here? I'd appreciate any ideas, I've set up a couple test sheets to see if I can puzzle it out, and now they're all returning the same error.
Update: Everything works properly when run from a different account, so it's looking like it's a problem with my account, specifically. Is there any way to manually check that an Apps Script project has been authorized correctly on a given account, aside from the prompt when the script is first created?
I ended up fixing it by explicitly setting the Authorization Scopes in the manifest. In case anyone finds this question later, here's the links to the relevant Apps Script guides:
Authorization Scopes:
https://developers.google.com/apps-script/concepts/scopes
List of OAuth 2.0 Scopes:
https://developers.google.com/identity/protocols/googlescopes