Storage limit error when trying to upload file to Google Drive.

Hello!

I'm trying to send some files to Google Drive via a script developed in Python and I'm not succeeding.

I have a paid Google Workspace account and there I have over 30TB of free storage. I also checked that the size limit for a single file is 5TB.

I have an 18GB file and I sent it through the browser, with the purpose of testing, and the sending was successful.

My problem is when I try to send via Python script. It brings me in the error log:

Error sending FILE.zip: <HttpError 403 when requesting None returned "The user's Drive storage quota has been exceeded.". Details: "[{'message': "The user's Drive storage quota has been exceeded.", 'domain': 'usageLimits', 'reason': 'storageQuotaExceeded'}]">
403
Forbidden
b'{\n "error": {\n "code": 403,\n "message": "The user\'s Drive storage quota has been exceeded.",\n "errors": [\n {\n "message": "The user\'s Drive storage quota has been exceeded.",\n "domain": "usageLimits",\n "reason": "storageQuotaExceeded"\n }\n ]\n }\n}\n

The error indicates that the Google Drive storage quota for the user or service account being used has been exceeded. Which is not the case.

The library used in Python to communicate with Google Drive is "GoogleAPIClient". This library is part of the Google Client SDK and allows interaction with Google services, including Google Drive.

Thanks a lot if anyone can help me.

1 1 2,438
1 REPLY 1

Hi Henry, 

Question about the process, are you using a service account or are you using the user's account to authenticate the process? if you are using a service account or a different user to authenticate the process. The problem could be that as with the upload process, it uploads it temporarily to the account that you are using to authenticate and then it sends it to wherever it is needed.