#667·gdrive

Error 429 after trying to upload a large file

Author: mbenencaseCreated Dec 26, 2022Updated Mar 14, 2023

Hi, I'm trying to use the Google Drive API, but when I tried to upload the first file I received the following error:

Uploading ../stream_11730/stream_00.mp4
512.0 B/7.5 GBFailed to upload file: googleapi: got HTTP response code 429 with body: <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>Sorry...</title><style> body { font-family: verdana, arial, sans-serif; background-color: #fff; color: #000; }</style></head><body><div><table><tr><td><b><font face=sans-serif size=10><font color=#4285f4>G</font><font color=#ea4335>o</font><font color=#fbbc05>o</font><font color=#4285f4>g</font><font color=#34a853>l</font><font color=#ea4335>e</font></font></b></td><td style="text-align: left; vertical-align: bottom; padding-bottom: 15px; width: 50%"><div style="border-bottom: 1px solid #dfdfdf;">Sorry...</div></td></tr></table></div><div style="margin-left: 4em;"><h1>We're sorry...</h1><p>... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.</p></div><div style="margin-left: 4em;">See <a href="https://support.google.com/websearch/answer/86640">Google Help</a> for more information.<br/><br/></div><div style="text-align: center; border-top: 1px solid #dfdfdf;"><a href="https://www.google.com">Google Home</a></div></body></html>

Some useful information:

  • I have almost 70Tb of free storage at Google Drive,
  • All the files that I intend to upload have 5Gb+ of size (all of them are mp4 videos).
  • I'm using the release 2.1.2 (fork) from this issue #666 .

Did anyone have this problem before? I tried to find it on the issue list also, but I couldn't. The current problem that I'm trying to solve is, I have a lot of mp4 files in a VM on Azure. I just want to upload that data to Google Drive. This API was the fastest way, let me know if you have any other recommendations as well.

Thanks in advance!