Stream

Join this community to post or comment
 
403 rate limit, paranoid mode

I'm working on a library to access Google Drive, and want it to workaround the 403 rate limit bug. So I'm thinking of adding an optional "paranoid mode" for Inserts, which will 
a) add a property to the posted File Resource with a random transaction-id
b.1) if the insert fails with a 403 rate limit, do a List?q=title contains 'title' and see if any of the returned items match the transaction-id.
b.2) If there is a match then return success, if no match then backoff and retry Insert

Can anybody see any issues with this logic? I'm wondering how quickly after an insert will the new title be indexed such that it will be found by a List:q=title contains 'title'
1
Roy Smith's profile photoDavid Launen's profile photo
3 comments
 
From my experience thus far, it appears to be committed with the insert and is immediately available, however I believe you're assumption might be correct and based on the health/load on Drive you may run into incorrect results with your "paranoid mode" idea.  Not knowing the app or use case, the only thing I can think of off hand is to have a "paranoid mode for the paranoid mode" and have a daemon that runs some time after the "paranoid insert" has run double checking on all of the paranoid mode inserts to ensure you didn't double insert the file.
Add a comment...
 
Hi
I am trying to download ".docx" file from google drive using node.js API. I am getting the content but unable to save/download it.
please check my stackoverflow question link
http://stackoverflow.com/questions/29276660/unable-to-download-file-from-google-drive-using-api-node-js?noredirect=1#comment46785019_29276660
2
Harpreet Singh's profile photoAmanda Spindel's profile photo
7 comments
 
+Harpreet Singh It is the original link you sent me to.  The answer is there. 
Add a comment...
 
I am looking for a way to prevent a synced file in a GDrive desktop folder, like an MS Word file, from being opened if it is already opened by someone else. Is it possible to either lock the file or flag it? 
1
Maël Vincent (mvkirk)'s profile photo
 
Not at my knowledge.
Add a comment...

Roy Smith

Discussion  - 
 
Has anybody figured out how sharing applies to the changes feed?
If User-A shared File-1 with User-B, File-1 and changes made to it do not show up in a changes.list run by User-B. File-1 is created by MyApp using drive.file scope. Ironically, changes to public files made outside MyApp do appear in the changes feed. Bizarre. 
1
Add a comment...

Ahmad Mustfa

Discussion  - 
 
Hi experts.
Any solution to how to use following VBA code in googlespreadsheet.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Columns(3).ClearContents 'clears content of column 3
End Sub
1
Daniel Frost's profile photoAhmad Mustfa's profile photo
2 comments
 
how to use that?
I am already using a script in that sheet. I dont know how to use another in the same sheet.
Add a comment...
 
I'm trying to get an app running on the Apps Marketplace with Drive SDK integration. It's almost there, but the problem is that the OpenUrl provides a userId value. Yet the 2-legged server OAuth process described in all the docs requires that we produce a JWT with sub=<useremail>. I've tried this out in the debugger --- it complains if we pass in the userId but works if we provide an email address.

So the question is --- how do we get the OAuth token for this user? I'm sure everyone who uses the DriveSDK has run into this issue but don't see a solution despite many hours of googling.... help or ideas much appreciated!
3
Steven Bazyl's profile photoPraveen Seshadri's profile photo
2 comments
 
Hi +Steven Bazyl thanks for the feedback. yes, I'd love to use our existing 3LO flow. But from what I could tell from the docs, this is a no-no if you want to submit an app to the Apps Marketplace. The docs seem to explicitly require that once a domain admin installs a marketplace app, users from that domain should never be shown an auth consent screen. So that's why I was looking for a way to get access tokens via 2LO.

Your response "the consent screen is abbreviated for installed apps" suggests I don't need to bother about it! That would be awesome.
Add a comment...
 
Hi, we are creating a product in JAVA using calls to google drive API. We are using the files.list endpoint to allow the end user user to search among his google drive files. These results come sorted by modification date but as results from a search engine, we would like to have the result sorted by relevancy. Any idea please ?
1
Antoine Magnier's profile photoEric Koleda's profile photo
2 comments
 
Unfortunately it's not possible to sort the results today. Feel free to file a feature request here: https://code.google.com/a/google.com/p/apps-api-issues/
Add a comment...
 
Hi Sir!
I d like to develop an application using qt as like as google drive.
But i had tried much times to find qt google drive sdk or sample, i had still not found.
What s wrong?
I think there is google drive sdk or api for qt anywhere...
If you know about this, please inform me.
Thanks.
2
BongBong Jin's profile photoCypher Incorporated's profile photo
3 comments
 
https://developers.google.com/drive/web/quickstart/quickstart-php
you can find google drive api sample code here.
Add a comment...
 
Motivation Why are you doing this? should not be more than 2 or 3 points groom the next generation of successful cartographers and Maps experts on the African continent improve the places that people know and love on Maps by using Map Maker focus on the map of a neighborhood, region, or even fo...
2
1
VonVictor Valentino Rosenchild's profile photo
Add a comment...

Keval Tejani

Discussion  - 
 
Hi, could someone please assist me with my app's Google Drive SDK & API usage? I am unable to get the file or it's metadata on my webstore app. Here's the link having my question in detail: http://stackoverflow.com/questions/29301123/unable-to-get-google-drives-file-or-its-metadata-on-my-webstore-app
1
Add a comment...
 
Hey, hoping to get some help here! I have an app thats using the Android Drive API to syncing a file between devices. My solution has been in production for about 3 months, but has mysteriously stopped working this last weekend.

Specifically I'm getting a "Sync request rate limit exceeded" error, however I only have about... 2 or 3 DAUs currently.

I'm not even remotely close to my quota, and especially with requests failing now, I'm at "Free Quota: 10,000,000 requests/day,  9,999,991 requests/day remaining, 100% of total".

Anyone have any ideas?
1
Martin Zeitler's profile photoKevin Grant's profile photo
7 comments
 
Unfortunately it's already in production, so I can't do that =/
Add a comment...

Zhang Bruce

Discussion  - 
 
I'm trying to work with the app folder, but found out resource in this folder cannot be trashed using file.trash(googleclient).
any idea how do i remove a resource
 from app folder? or I have to change it to normal folder
1
Zhang Bruce's profile photoCheryl Simon Retzlaff's profile photo
Add a comment...
 
When a new file is uploaded to Google Drive it shows in the special folder "Recent".

Is there a way/flag that makes an uploaded file not showing in the "Recent" folder using Google Drive SDK?
1
Bjorn Behrendt (EdListen)'s profile photo
 
No because recent is not a folder but a saved search by modified date.
Add a comment...
 
Sharing dialog problems, X-SAME-ORIGIN, started yesterday. 

We started noticing random problems with users not being able to use the Google Drive SDK sharing dialog, and today it's increased. I assume this is some new version of the Drive SDK released breaking backwards compatibity.

Refused to display 'https://drive.google.com/sharing/share?id=...postMessage&appId=399581875395&embedOrigin=https%3A%2F%2Fwww.mindmup.com' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

this used to work OK until two days ago. Is anyone else experiencing problems with this?
2
David Benson's profile photoEric Koleda's profile photo
13 comments
 
+Roy Smith, thank you for the feedback, I'll pass it along to the team. We have a variety of testing in place for new releases, but obviously not enough to catch this specific outage. We'll continue to work to improve the stability of our offerings.
Add a comment...

Skip Cave

Discussion  - 
 
I have a Google Drive admin account that shares multiple GD folders with many other users. When any user puts GD files or folders in one of the admin folders, I want the ownership of that file/folder changed from the user to the admin account. After the ownership change, those file or folder's permissions that were put in the admin folder should be set to read only. I'm willing to pay for developing this functionality as an add-in to GD. Any takers?
2
Brieuc Schaff's profile photoSkip Cave's profile photo
4 comments
 
Very interesting! The issue I have is that when a user finishes working on a document, I want them to be able to place that document in a  shared folder in their My Drive, which has a special "ownership-transfer" attribute, and is owned by an administrator account.  Other users will also be placing similar documents into that shared folder.

Once a user's document is moved to that "ownership-transfer" folder, that document's ownership should be automatically transferred to the administrator account. Also all docs in the admin account folder should be automatically set to view-only permission for all users (except the admin, of course).

All users who have the shared folder in their My Drive should be able to see all the docs in that folder and sub-folders. However, once any doc has been placed in that special admin folder, I want it to be impossible for any user to move or delete that doc from the admin folder (again, except the admin). Also, users should not be able to delete or move the  shared folder from its place in their My Drive.

There should be an easy way for the admin to designate any shared folder to be a "ownershp-transfer" folder. A right-click context menu would be nice.

Do either of the suggested apps do this?
Add a comment...
 
Google Docs Add-on question.  Is there any way to return focus to the document after you interact with a button on a side-panel?  It is frustrating to have to click back on the document to continue typing. 
3
Daniel Baker's profile photoEric Koleda's profile photo
3 comments
 
I'll answer in the other community.
Add a comment...

Spencer Easton

Discussion  - 
 
Today I'm seeing the below error on calls that were previously working. This is from a Files Insert.  The files are being created in Drive despite the returned error code.

Error: { "error": { "errors": [ { "domain": "global", "reason": "internalError", "message": "Internal Error" } ], "code": 500, "message": "Internal Error" } }
1
Spencer Easton's profile photo
 
Meh. I figured it out. I'm creating google script files. Just saw this error: Created too many projects in a short time. This is on me.
Add a comment...

Nick Craig-Wood

Discussion  - 
 
Error 401: Invalid Credentials, authError on long uploads

One of my users keeps getting this while trying to upload big .zip files (of about 0.5-2 GB in size).  The transfers run for 40 minutes or so then fail with the error above. I'm doing the transfers with a single insert.

Some of the transfers have succeeded so I know that it is possible to transfer 2 GB .zip files like this.

Has anyone else seen this problem?  Got a work-around?

Thanks
1
Nick Craig-Wood's profile photoAngelo Pengue's profile photo
5 comments
 
+Nick Craig-Wood yeah the resumable transfer method is the right way to go for large files (and arguably files of any size)
Add a comment...

Gaudenz Alder

Discussion  - 
 
What is the recommended solution for defining a preview (not thumbnail) for custom files using the Drive API?
1
Eric Koleda's profile photo
 
The thumbnail image is used when previewing the file. It's not currently possible to set a separate preview image.
Add a comment...