iterative / iterative/PyDrive2
Getting a googleapiclient.http warning despite file being downloaded
- Dominant language
- Python
- Stars
- 670
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
Description
I'm using PyDrive2 v.1.10.0 on Mac to download google doc as docx but I keep getting the following warning even though the file gets downloaded anyway:
```
WARNING:googleapiclient.http:Encountered 403 Forbidden with reason "fileNotDownloadable"
```
Any idea how to silence that or prevent it from happening? Can someone explain why I am getting this warning?
Here is my code:
```
drive_files = drive.ListFile({'q': f"'{drive_id}' in parents and trashed=false"}).GetList()
for file in drive_files:
file.GetContentFile(file_path, mimetype='application/vnd.openxmlformats-officedocument.wordprocessingml.document')
```
_Note_: I get the same warning with `mimetype="application/pdf"` but not with `mimetype="application/zip"`
Thanks in advance!
Contributor guide
Assessment
This issue has not been assessed yet.