Hi @brenton,
I took a look and the error that Google is returning when requesting the download is:
“error”: {
“errors”: [
{
“domain”: “global”,
“reason”: “cannotDownloadFile”,
“message”: “This file cannot be downloaded by the user.”
}
],
“code”: 403,
“message”: “This file cannot be downloaded by the user.”
}
}
- cannotDownloadFile))
I don’t think I’ve seen this particular error before. Unfortunately it doesn’t provide much useful information other than Google is deciding to prevent the download. I can’t find anything about this particular message in their documentation, either.
Is there anything, at all, of note about these files? Are they shared with other users?
I see several trash errors for Charlie, too. The error coming back from Google is:
“error”: {
“errors”: [
{
“domain”: “global”,
“reason”: “forbidden”,
“message”: “Insufficient permissions for this file”,
“locationType”: “other”,
“location”: “file.permissions”
}
],
“code”: 403,
“message”: “Insufficient permissions for this file”
}
}
- forbidden))
I’ll usually see this error if the file that is trying to be deleted is a shared file. Google doesn’t have an API to remove shared files, so when trying to delete them you will see this error. The only way to remove these files from the user’s Drive is to use the Google Drive web client to do so.