Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drive API Deactivated on Clasp Push #553

Closed
ldandriscoll opened this issue Feb 21, 2019 · 2 comments
Closed

Drive API Deactivated on Clasp Push #553

ldandriscoll opened this issue Feb 21, 2019 · 2 comments

Comments

@ldandriscoll
Copy link

Please search existing issues before creating a new one.

DON'T DELETE THIS! FILL THESE SECTIONS OUT!

Expected Behavior

Using clasp to push a file with Drive API should update normally and not affect the status of the Drive API.

Actual Behavior

If a project is using Drive API, clasp push shows the following message:

image

If you push and overwrite, the Drive API will switch to off here:

image

This will produce Drive errors in the Google Script:

image

However, the Drive API will remain enabled and untouched on the Google Cloud Platform API Dashboard.

The fix is simple in that after you push using clasp, you just need to turn back the Drive API. This isn't a huge issue, but thought I would bring attention to it. Took me a bit to figure out what was happening so I hope this will help someone else!

Perhaps this may be related to issue #513.

Steps to Reproduce the Problem

  1. Create a project that uses the Drive API
  2. Activate Drive API in Advanced Google Services and Google Cloud Platform API
  3. push file update using clasp, and Drive API will shut off.

Specifications

  • Node version (node -v): v10.13.0
  • Version (clasp -v): 2.0.1
  • OS (Mac/Linux/Windows): Mac High Sierra
@erickoledadevrel
Copy link
Contributor

This is working an expected. The appsscript.json file defines which advanced services have been toggled on. If you pull a project before toggling it on in the UI, then toggle it on in the UI, then push the original file back you will have reverted that change.

@ldandriscoll
Copy link
Author

ldandriscoll commented Feb 21, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants