I have a Google App script (GAS) add-on for Sheets in 'Google Workspace Marketplace'.
The Script calling Urlfetch to get data from our API.
The user provide a APIKEY to identify user and get access.
The user can trigger the URL fetch from custom function OR from a Menu 'Refresh' button.
The Addon has worked fine for several month - but now I have one user that made a sheet that calls the API 'forever'.
The Problem
One user has created a Sheet that calling Urlfetch over and over again.
I talked to user and checked his sheet. There is no triggers or loops in the sheet.
On my account the users sheet works fine.
The users Sheet has around 1000 API calls (big sheet) and I can see in Google Apps Script Log that the calls in looping. There is 1000 calls in log and then stops and wait for some random time of maybe 20min and starts over again.
Today I had 30k api calls in last 24h from this sheet.
I dont know how to stop it.
The user does not have the sheet open in any webbrowser.
What I tried
1.
The user has tried to make a copy of the original sheet and then deleted the original sheet to see test if Urlfetch stops.
This did not work. The Urlfetch continus to call API.
2.
I made a new Version of Addon and deployed.
I hoped that a new version could tell Google server to stop/restart the sheet.
This did not help.
- What can I do to stop this script from running forever, for this user?
- Is any way in Google Admin to stop the script from running?
I could hardcode into Addon the User APIKEY and block it, but this is ugly.
I dont want to do this.
Any help is appreciated,
Br,
Henrik
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/03fdca6d-03fb-4735-88aa-04c611842fd7n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Script Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-script-community/HYdqKEGN2rE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/3719bf53-08c4-4644-ab4b-ebfcf1b11a79n%40googlegroups.com.