I stepped through this example to create a Google Apps Script. I've wired up the OAuth2 credentials from a 3rd party javascript application and tried to execute my google apps script via that app. Every time I attempt to it fails with
"error": {
"code":3
"message": "ScriptError",
"details":[{
"@type:": "type.googleapis.com/google.apps.script.v1.ExecutionError",
"errorMessage": Script function not found: setData",
"errorType": "ScriptError"}]}}
I've enabled the Apps Script API on this App Script and can see the logs of the execution failing from within my Drive. I'm connecting via a chrome extension which I created Oauth2 credentials for
Also the relevent function is named 'setData':
function setData(parameters) {
If I look at the Execution Transcript on setData, I see it attempting to run:
[19-01-24 16:33:39:982 PST] Starting execution
[19-01-24 16:33:39:988 PST] Execution failed: Script function not found: setData [0 seconds total runtime]
The cruel irony is that behind the modal i can see the function 'setData' sitting there
Please let me know how to debug this
setData()in the project that you set the project ID? - TanaikesetData(). 2. The project of Google Apps Script is not linked to the project of Google Developer Console. If my understanding is correct, for example, how about using the Google Developer Console project linked to the existing GAS project? Or how about linking the Google Developer Console project you want to use to the the Google Developer Console project? But I'm not sure whether this is the direct solution. I apologize for this situation. - Tanaike