Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Error 403: Rate Limit Exceeded'' at self.service.Files.List().'' #430

Closed
SaitouToshihide opened this issue Feb 2, 2019 · 4 comments
Closed

Comments

@SaitouToshihide
Copy link

This happens frequently when ``sync upload''ing a folder with a large number of files.

Failed listing files: googleapi: Error 403: Rate Limit Exceeded, rateLimitExceeded

The location of this error is the below in the list.go:

err := self.service.Files.List().Q(args.query).Fields(args.fields...).OrderBy(args.sortOrder).PageSize(pageSize).Pages(context.TODO(), func(fl *drive.FileList) error {

How can we rewrite this query to eliminate the rate limit?
Does using the pageToken mitigate the rate?

@chunglim
Copy link

chunglim commented Feb 2, 2019 via email

@TanukiAI
Copy link

TanukiAI commented Feb 3, 2019

Also don't use the public API from the creator of gdrive. Look here: #426 or here #426 (comment)

"What causes the problem?

The developer made one API for this program and an Google API can "only" make 10 million requests at a day. That means that too many people use this program and the requests gets full."

@SaitouToshihide
Copy link
Author

It seems that the problem soleved by changing ClientId/ClientSecret.

Thank you.

(In this process, syncable directories became not-syncable. Maybe bacause an application is identified by ClientId and AppProperties' syncRoot stored for each ClientId. It is safe but cause such problem. So how about chage AppProperties and syncRootId with Properties and URI for all forked gdrive descendant?)

@TanukiAI
Copy link

TanukiAI commented Feb 4, 2019

It didn't work because the API gets overflooded with requests

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants