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

Obscure error when authenticated with an account that doesn't have permission on the Script project #79

Open aurelienshz opened 6 years ago

aurelienshz commented 6 years ago

When authenticated with an account that doesn't have write permission on the target script project, the output to npm run upload is the following :

Pushing back up to Google Drive...
Error parsing project files
Script file ID not found. Please input an ID and try again.
Upload failed.

This error message seems misleading, because the id of the project is correct! What's wrong is that I'm authenticated with the wrong account.

A potential "fix" (improvement) could be:

I might try to look into it later, but for now I'm leaving this issue for searchable reference if other people run into it.