google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.52k stars 422 forks source link

Clasp claims it has pushed files even when Apps Script API is not enabled #973

Open dandv opened 1 year ago

dandv commented 1 year ago
  1. Log in with a user who doesn't have the Google Apps Script API enabled
  2. Run clasp push

Notice that clasp returns an error,

code: 403,
  errors: [
    {
      message: 'User has not enabled the Apps Script API. Enable it by visiting https://script.google.com/home/usersettings then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.',
      domain: 'global',
      reason: 'forbidden'
    }
  ]

but it also claims to push all the files:

}
└─ /home/dandv/myaddon/appsscript.json
└─ /home/dandv/myaddon/Code.gs
└─ /home/dandv/myaddon/test.gs
Pushed 3 files.

Specifications