Google Drive API Request Limitations

I ask for support or special knowledge.

In my application Im using Google Drive and you need to insert / remove permissions for 1000+ files. The Google API does not allow me to allow multiple files in a single request, so I need to make 1000+ requests (or wrap them in a batch or several batches).

My queries are as follows:

POST /drive/v2/files/0B18tlN6SgYRaUzl1MUlnNHlGSEE/permissions?sendNotificationEmails=false"aUser=00787465305247954313&alt=json

But when I try to make a batch request for the Google Drive API, I got a batch response with a lot of error responses. A few first answers in batch, but not all.

Most of these erroneous answers look like this:

Content-Type: application/http
Content-ID: <response-280781395>

HTTP/1.1 403 Forbidden
Content-Type: application/json; charset=UTF-8
Date: Tue, 09 Sep 2014 11:45:03 GMT
Expires: Tue, 09 Sep 2014 11:45:03 GMT
Cache-Control: private, max-age=0
Content-Length: 199

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "rateLimitExceeded",
    "message": "Rate Limit Exceeded"
   }
  ],
  "code": 403,
  "message": "Rate Limit Exceeded"
 }
}

Some of them are as follows:

HTTP/1.1 500 Internal Server Error
Content-Type: application/json; charset=UTF-8
Date: Tue, 09 Sep 2014 11:45:03 GMT
Expires: Tue, 09 Sep 2014 11:45:03 GMT
Cache-Control: private, max-age=0
Content-Length: 180

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "internalError",
    "message": "Internal Error"
   }
  ],
  "code": 500,
  "message": "Internal Error"
 }
}

And the last few answers in the package are as follows:

Content-Type: application/http
Content-ID: <response-901482964>

HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=UTF-8
Date: Tue, 09 Sep 2014 11:45:03 GMT
Expires: Tue, 09 Sep 2014 11:45:03 GMT
Cache-Control: private, max-age=0
Content-Length: 171

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "badRequest",
    "message": "Bad Request"
   }
  ],
  "code": 400,
  "message": "Bad Request"
 }
}

, // Google . 10000//. 1000 , " 403". "500 ".

, quotaUser ' , . .

Google - , Google , 1000+ . 20-30 , . "" , . 1 , - 40 . , , Google - .

:

  • ( 10000 // Google Cloud Console) ?
  • API- Google Drive "500 Internal Error" "400 "?
  • - ?

P.S.: Im Google Drive, .

+4
1

QPS , , , . QPS , . 1000qps.

, .

+1

All Articles