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

Issue with .gcopy and copying folders #259

Open
Xazmah opened this issue Mar 3, 2022 · 2 comments
Open

Issue with .gcopy and copying folders #259

Xazmah opened this issue Mar 3, 2022 · 2 comments

Comments

@Xazmah
Copy link

Xazmah commented Mar 3, 2022

I'm facing an issue when trying to copy folders (folders are stored in Team Drives I have access to) using .gcopy, copying files (stored in Team Drives as well) working just fine but can't copy folders (was working fine before v1)

Here's the logs

Traceback (most recent call last):
    File "/app/userge/plugins/misc/gdrive/__main__.py", line 480, in _copy
      dir_id = self._create_drive_dir(drive_file['name'], self._parent_id)
    File "/app/userge/plugins/misc/gdrive/__main__.py", line 287, in _create_drive_dir
      self._set_permission(file_id)
    File "/app/userge/plugins/misc/gdrive/__main__.py", line 178, in _set_permission
      self._service.permissions().create(fileId=file_id, body=permissions,
    File "/app/.heroku/python/lib/python3.9/site-packages/googleapiclient/_helpers.py", line 131, in positional_wrapper
      return wrapped(*args, **kwargs)
    File "/app/.heroku/python/lib/python3.9/site-packages/googleapiclient/http.py", line 937, in execute
      raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 400 when requesting https://www.googleapis.com/drive/v3/files/0bqh7jmqjMMZDNXm4OvMilVMKvvQi2kPw/permissions?supportsTeamDrives=true&alt=json returned "Bad Request. User message: """. Details: "[{'domain': 'global', 'reason': 'publishOutNotPermitted', 'message': 'Bad Request. User message: ""'}]">
@rking32
Copy link
Member

rking32 commented Mar 4, 2022

.gup works fine?

@Xazmah
Copy link
Author

Xazmah commented Mar 4, 2022

Yeah .gup is uploading files but showing the same error in logs

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