Using ScriptApp.getProjectTriggers() results in Server Error

The name of the picture


Using ScriptApp.getProjectTriggers() results in Server Error



I'm using Google Apps Script in Google Sheets.
I have a problem with this function:


var projectTriggers = ScriptApp.getProjectTriggers();



From 20.06.18 this function stopped working, and give the error (from Czech):



Sorry, there was a server error. Wait for a moment, then try again.



Maybe Google launched a new function? But this function is very important for my scripts. How can I resolve this issue?





What error are you getting ?
– Umair
yesterday





I have it in Czech, but is something like Sorry, there was a server error. Wait for a moment, then try again.
– Michael Siegert
yesterday







Are the only triggers in the relevant documents from your account? You'll have to ask your coworkers to check if they have triggers since you cannot view that information.
– tehhowch
yesterday




3 Answers
3



Unfortunately this seems to be affecting plenty of people right now.
https://issuetracker.google.com/issues?q=getProjectTriggers()



So, this is a known issue - I hope google will fix soon. You might help by adding your star ... for those who don't know select one (or all related) issue on the list; when you open you will see a star outline. Select it so it goes yellow as per diagram below:



 Google issue tracker: Scripts - Error when request triggers by getProjectTriggers and getUserTriggers



Did you manage to solve it? I have the same error message:


var triggers = ScriptApp.getProjectTriggers();



Results this:



Exception: We're sorry, a server error occurred. Please wait a bit and
try again



If I try to run the script with a different user (with whom I shared the SpreadSheet) or if I remove the code above, it works.



The SpreadSheet has only one trigger which was added manually in january.



I'm experiencing this strange behavior from 23.07.2018. Last time it worked was on 20.07.2018.



Create script through spreadsheet or document.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

How to scale/resize CVPixelBufferRef in objective C, iOS

Stripe::AuthenticationError No API key provided. Set your API key using “Stripe.api_key = ”

SVG with two text elements. When one resizes due to textLength - how to resize the other one to the same character size