node-google-apps-script icon indicating copy to clipboard operation
node-google-apps-script copied to clipboard

Push Fails on standalone Script in Team Drive

Open tonyOreglia opened this issue 6 years ago • 5 comments

gapps push

Pushing back up to Google Drive...
An error occured while running upload command: File not found: 1FYwO4nDv9vC8t9X8S3qpya3QFhbqehM_wYcJlpuGaV1EjewaNCMdx6-e
Upload failed.

All worked well until I moved the script into a team drive. I notice that the Drive API has a property called supportsTeamDrives for update and get calls. Is it possible that this property is required in the update for it to work?

I did re-authenticate everything after moving the script to the team drive.

tonyOreglia avatar Jul 11 '17 06:07 tonyOreglia

Note that the push to succeeds if I just move the script back to my Drive. We need it in a Team Drive for publication purposes.

tonyOreglia avatar Jul 11 '17 06:07 tonyOreglia

  • https://developers.google.com/drive/v3/web/enable-teamdrives : “If your application isn't affected by the behavioral differences, then you only need to include thesupportsTeamDrives=true query parameter in requests. This is an acknowledgement that the application is aware of behavioral differences of files contained in Team Drives.”

tonyOreglia avatar Jul 11 '17 07:07 tonyOreglia

I'm having this same issue. Any updates?

Perseus101 avatar Sep 14 '17 16:09 Perseus101

Similar issue here

AdrienLemaire avatar Sep 20 '17 07:09 AdrienLemaire

Sorry @tonyOreglia . I am only seeing the PR now.

lricoy avatar Nov 29 '17 11:11 lricoy