google-api-nodejs-client icon indicating copy to clipboard operation
google-api-nodejs-client copied to clipboard

Requested entity was not found, while running Google Apps Script externally using node.js

Open chandakash opened this issue 2 years ago • 2 comments

Thanks for stopping by to ask us a question! Please make sure to include:

  • What you're trying to do -> I'm running app script using nodejs. I have already authenticated it using oauth2 and provided relevant scopes as well. I have already deployed the script using deployment api.
  • What code you've already tried ->
  • const runRes = await script.scripts.run({ scriptId: res.data.scriptId, requestBody: { function: 'setUpTrigger', }, });
  • Any error messages you're getting -> when running getting this : Requested entity was not found.

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

chandakash avatar Aug 17 '23 16:08 chandakash

Having same issue, any update on this?

crudybagger avatar Oct 19 '23 18:10 crudybagger

I solved this by deploying the script as an "API Executable".

stuc1fer avatar Mar 23 '24 17:03 stuc1fer