Error trying to get Google Drive file

I get an error when trying to get a Google Drive file using:

file = service.files().get(fileId=<googleDriveFileId>).execute()

Error:

<HttpError 404 when requesting https://www.googleapis.com/drive/v2/files/0B6Cpn8NXwgGPQjB6ZlRjb21ZdXc?alt=json returned "File not found: 0B6Cpn8NXwgGPQjB6ZlRjb21ZdXc">

However, when I copy and paste this link directly in the browser as follows:    https://www.googleapis.com/drive/v2/files/0B6Cpn8NXwgGPQjB6ZlRjb21ZdXc?alt=json

I get another error:

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "dailyLimitExceededUnreg",
    "message": "Daily Limit Exceeded. Please sign up",
    "extendedHelp": "https://code.google.com/apis/console"
   }
  ],
  "code": 403,
  "message": "Daily Limit Exceeded. Please sign up"
 }
}

I'm not where even close to exceeding the daily limit, the console shows 0% use. I know that fileId is correct, I use Google Picker to get the file. Any ideas?

+1
source share
1 answer

I found elsewhere that this is a known issue with Google Drive that they are working on. They offer the following workaround, which I confirmed.

:

enableFeature(google.picker.Feature.MULTISELECT_ENABLED).

:

var picker = new google.picker.PickerBuilder().
        addView(view).
        addView(uploadView).
        setAppId("pressomatic").
        setCallback(pickerCallback).
        enableFeature(google.picker.Feature.MULTISELECT_ENABLED).
        build();
    picker.setVisible(true);

, Google Picker setParent DocsUploadView. Picker, DocsUploadView, , .

+2

All Articles