danthareja / node-google-apps-script

[DEPRECATED - use clasp instead] The easiest way to develop Google Apps Script projects
MIT License
353 stars 70 forks source link

Upload/push fails "File not found: [Script Id] #43

Closed lohals closed 7 years ago

lohals commented 7 years ago

I have installed node-google-apps-script and have followed the guide for setting up drive API access and Oauth client authentication. Everything has worked like a charm and have done "gapps init " on several of my script projects, all code files in a project is downloaded as expected. A gapps.config.json is also created.

However, doing a "gapps upload" always fails with: An error occured while running upload command: File not found: [scriptID]

The script projects are stand alone scripts residing in a google website i have created.

I have reviewed the configuration several times, but cant get upload/push to work.

Is there a log file somewhere I can check to see whats happening?

The only thing during setup i have noticed as being a little off is the where the documentation (3 -> 3.1 -> 2.) states that you should use get the project ID from the address bar between /d/ to /edit. This ID does not work when trying to do gapps init. Instead I used the Script ID in File->Project properties. This works for init, but cant upload/push changes.

lohals commented 7 years ago

The problem was that the script resided in a website. Tried to move it to google drive, and now push works.