I have the same problem as this and, but in a Java domain. This question also covers what I want, but since no answers have been received, I thought I would ask it here, with a little more detailed information.
I am using a Java application to backup files to Google Drive. As others found out, the failures of the β500 internal server errorβ are a fairly common download problem, but exponential shutdown is recommended for small files, and retrying works fine. However, for large files (something more than a few MB), the failure rate is unacceptably high. In some cases, I get more than 50% failures, which makes any long backup job impossible.
When you insert (upload) a file using the Google Drive v2 API, the documentation clearly states that there are three types of downloads available: simple, multiple, and renewable. The type of download is indicated by adding a parameter to the endpoint URL. Obviously, for me it is a renewable type of download.
Problem
There seems to be no way to set this uploadType parameter using the API. There, the method will call the task of each optional parameter (as described below here ), but is not an illustration of the method of adding the uploadType type for renewal. No code snippets, no documentation, nothing.
Somewhat confused, there is also what seems to be an unrelated βchunkedβ bulk load mode, which by default and which I actually disabled in my application, invoking request.getMediaHttpUploader().setDirectUploadEnabled(true), since it seems to have no significance whatsoever to the reliability of the load, no matter what is set in chunksize, and this greatly slows down the download.
I'm on the verge of going around the API and manually creating queries, but I really would like to know if anyone else came across this first. This is such a vivid omission that I cannot believe that many people have not experienced this before.
Greetings to all.
David.