How do I turn off alerts that I keep getting for a script that doesn't exist anymore? I created a google apps script to monitor a gmail account, but it didn't work right and I deleted the script. I currently have zero scripts associates with my account, but I still get this email every day:
Your script, Gmail Meter, has recently failed to finish successfully. A summary of the failure(s) is shown below. To configure the triggers for this script, or change your setting for receiving future failure notifications, click here.
Details:
Start Function Error Message Trigger End
1/28/15 1:16 AM activityReport Authorization is required to perform that action. time-based 1/28/15 1:16 AM
Sincerely,
Google Apps Script
There's a link to change seettings, but when I click the link I get a "Forbidden - Error 403" page (probably because the script isn't there anymore). It's super annoying anyone know of a way to turn of the alert that is causing this message?
I found this worked after getting script errors caused by 'Gmail Meter' which is an app I installed from the Chrome Web Store.
Go to script.google.com . If you were like me and have never been here before click the blue "Start Scripting" button.
Go to "Edit" menu -> "All your triggers".
A dialogue should pop up prompting you to save the current script. Rename to Temp and Click Ok.
Try to find the trigger that's sending the email and delete it. Or if you are like me, just delete whatever is there (which was only one line) by clicking the small gray 'x' at the start of the line.
Now it should state "No triggers set up. Click here to add one now."
Hope this helped.
This is interesting, it sounds like the Trigger is still running despite the script being removed.
Try creating an empty script, then select "All your triggers" from the "Edit" menu. You will be prompted to give your empty script a name, so call it "temp" or something along those lines.
Once the "All your triggers" window opens, hopefully you will see the trigger that's generating the error and be able to delete it by clicking the X.
Once finished you can delete your temp script.
Related
I've been executing a gscript for a couple years now, but just today I started seeing the following when I try to execute it:
The script does not have permission to perform that action. Required
permissions: (https://www.googleapis.com/auth/calendar ||
https://www.googleapis.com/auth/calendar.readonly ||
https://www.google.com/calendar/feeds)
I went ahead and deauthorized my script from my Account permissions page and re-ran the script to force re-auth, but I'm still seeing the error.
The line in question is simply trying to do:
CalendarApp.getDefaultCalendar()
Any idea on how to resolve this issue?
From what error you've encountered, it indicates that the script lacking the authorization needed to run. When a script is run in the Script Editor or from a custom menu item an authorization dialog is presented to the user. However, when a script is run from a trigger, embedded with a Google Sites page, or run as a service, the dialog cannot be presented and this error is shown.
If the script contains new unauthorized services, you must re-authorize the script. Here's a documentation on how to troubleshoot this type of error in Google Apps Script.
If a trigger continues to fire and cause this error, you can access your triggers by doing the following:
Select Edit > All your triggers in the Apps Script editor. The resulting dialog shows all active triggers running on your account.
Find the offending trigger in the list.
Click the clear icon next to the trigger name to remove it.
Click Save to record the deletion.
You can also remove problematic add-on triggers by uninstalling the add-on.
My original question was asked in google's support forum (https://productforums.google.com/forum/?utm_medium=email&utm_source=footer#!msg/gmail/0t_T1zvYzJQ/xCPLQXpYBQAJ), then redirected to their dev support (https://developers.google.com/apps-script/support) which finally redirects to this site when clicked on "Ask a question". So please don't blame me for asking this question here.
Please refer to the first link above for my question. It contains a lot of details and 2 screenshots. I'm copy-pasting them here also but you are free to refer to that link for more details.
I received the following email. However, I don't recognize this "script" or what it means. I wasn't trying to run a "purgeGmail" script. Any idea what this email means or should be my next steps?
Your script, Copy of Gmail Purge - Digital Inspiration, has recently failed to finish successfully. A summary of the failure(s) is shown below. To configure the triggers for this script, or change your setting for receiving future failure notifications, click here.
Start Function Error Message Trigger End
1/17/17 12:13 AM purgeGmail Authorization is required to perform that action. time-based 1/17/17 12:13 AM
Sincerely,
Google Apps Script
Need help? Visit the Google Apps Script documentation. Please do not reply to this message. (c) 2017 Google
I checked my account activity and found nothing suspicious. I did change my password about 2 weeks back actually because I received an email alert saying "sign-in attempt was blocked - unusual activity".
However, I'm not sure whether this "purgeGmail" script is a default script gone haywire or is it some kind of custom script setup by someone. If it's a custom script then I'm going to delete it.
When I goto script.google.com it shows me "Triggers for script Copy of Gmail Purge - Digital Inspiration" > 4 options underneat - initialize, install, uninstall, purgeGmail.
Not sure how this ended up in my account. I would like to report this to the authorities so that they can take down this script. But I'm not seeing any link or option to report it to the authorities. (1) Any idea where I need to report it?
(2) Also, any idea whether this is a default script or custom script? If it's custom I'm going to delete it. I click the cross icon. The heading still remains but the 4 options are gone. Then there is a save button. I'm not sure whether I should click that save button. The UI just sucks for this whole thing.
Here's a screenshot for this whole thing. I'm guessing you can open this pic in a new window so that it shows the actual size. Just right-click "open image in new tab" or download and open should work as on most websites.
I figured out what to do in this situation and would like to post an answer here so that it may help someone else too.
This script has come via some unknown source. I'm not sure how that person got in but google had once given me an alert for my account activity following which I had chaned the password. Here are the steps which I took to remove that script. In other words if you ever get an email from google stating script xyz failed due to lack of permissions then you can do the following steps:
1) Observe that the script is named "Copy of PurgeGmail". Hence, it is not part of the usual Gmail because had it been so it wouldn't have been named "copy of". This is definitely the work of some person (which you can also see in the screenshots in the question).
2) The script wasn't running because the permission was missing. So the next step is to go to script.google.com, use your google account to sign-in by clicking on "Start scripting".
3) On trying to sign-in Google asks you whether you want to create an account in scipt.google.com . If you do get this confirmation then click yes.
4) Google takes you to the default script editor. It loads a "new script" with only 2 lines showing up in the code section.
function myFunction() {
}
If this code is not present then add it. To view the trigger settings the IDE requires you to have an error free code. If you have a blank canvas or any errors in the code then the IDE will give you an error and not allow you to navigate away from this page.
5) Once you've copy-pasted the code above just click on Resources> All my triggers. This should now open a popup that actually shows you the triggers with a delete button (cross button).
6) Click the cross button and it instantly deletes the script. Click okay to confirm.
Now the suspicious script is not present anymore and you should not receive any further notifications. Just to be safe double-check your secondary email address to safguard against a second attempt.
I recently changed the security in my Google settings and I keep getting an email that starts with the following sentence:
"Your script, MailFred 1.145, has recently failed to finish successfully. A summary of the failure(s) is shown below. To configure the triggers for this script, or change your setting for receiving future failure notifications, click here."
When I click there all I get is a 404 Forbidden page. Back in the email text there is a long list of when the script has failed. I am not sure how to fix this issue, but I would like to stop getting the emails.
Any help would be much appreciated!
Go to your Google Accounts Settings and under Security, click the Apps and Websites link.
Here you'll see a list of all scripts that have access to your Google Account. Revoke access to the one that is sending those error notifications.
You're right in your comment : revoking authorization while letting the script run is the origin of the error and the subsequent errors notifications...
I don't know the MailFred app but from what I saw on their site it's all built using Google-Apps-Script so I guess the trigger they use must appear as any other one...
To disable this triggers that is trying to run , follow these simple steps :
open any Google Spreadsheet, document or form
then open the script editor (from the "tools" menu),
go to 'resources' > triggers > all your triggers
and there delete the trigger(s) that you don't want to run.
If you see many of them, try to determine which one belongs to this app... you can check the notification mode, set it to a known time and wait for the next email, see at what time it was sent... The method is not very acurate (about an hour time frame) but it can help.
Sorry I can't be more concise, I don't use this app and didn't find a lot of informations about it.
Here is the example of how I did it. It's a pretty straight forward according to me.
See the following message I got when my script fails. It says,
"Your script, clearContent, has recently failed to finish successfully. A summary of the failure(s) is shown below. To configure the triggers for this script, or change your setting for receiving future failure notifications, click here."
You should be getting the same kind of message. Click on "click here" hyper linked text, it will directly take you to the settings page of that trigger. And, just change the setting of the particular trigger or delete it.
I have been receiving the following email since Sept 1 .
Prior to that I had set up Gmail Meter in Google Docs/Drive but deleted the spreadsheet.
How can I stop receiving the emails .
Your script, Not found, has recently failed to finish successfully. A summary of the failure(s) is shown below. To configure the triggers for this script, or change your setting for receiving future failure notifications, click here.
Details:
Start Function Error Message Trigger End
9/3/12 10:21 PM activityReport We're sorry, a server error occurred. Please wait a bit and try again. time-based 9/3/12 10:21 PM
Sincerely,
Google Apps Script
Here is a solution that helped me:
Go to script.google.com. Go to "Resource" -> "All your triggers".
A rename dialogue should pop up prompting you to save this fake script. Click Ok.
Try to find the trigger that's sending the email and delete it.
Now all your triggers should appear - even for documents that you've already deleted from Google Docs/Drive.
Good luck!
There is probably a trigger that is still in your trigger list, to remove it simply open any script in the script editor and go to /ressources/all your triggers/ and delete it.
I am receiving an apps script notification email about 1 per minute. I don't think I have any scripts running. How do I make it stop?
Your script, Unsaved script, has recently failed to finish successfully. A summary of the failure(s) is shown below. To configure the triggers for this script, or change your setting for receiving future failure notifications, click here.
Details:
Start Function Error Message Trigger End
6/21/12 1:15 PM myFunction We're sorry, a server error occurred. Please wait a bit and try again. time-based 6/21/12 1:15 PM
Sincerely,
Google Apps Script
You should check if you have some triggers that are running...
to check that : open or create a spreadsheet go to >tools>script editor > EDIT > all your triggers and see if something is firing every minute.
and... delete it with the x
I found I created a script and forgot about it. Kept getting many notifications. In my case, it was a script in Google Drive. Try this:
Open Google Drive
In search bar type: 'app:"Google Apps Script"'
This should list all apps. find the one with the same name as the notification and edit/disable.
Note, that you may also have a script bound to a google document a.k.a. Addon (https://developers.google.com/apps-script/guides/bound) which can have a trigger built in.
I had to find all spreadsheets and look under Tools (as above) to find the culprit. I could not find a way to search for sheets with scripts.
Go to google.com, then click your account picture in the top-right corner of the screen. Next, click Account, then Security, then Review permissions. Click Revoke Access next to the script whose authorization you want to revoke.