-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Rate Limit Exceeded #145
Comments
+1 Error : Failed to obtain auth token: HTTP 400, body: { |
Same here: exception: /home/pi/git/grive2/libgrive/src/protocol/AuthAgent.cc(159): Throw in function long int gr::AuthAgent::CheckHttpResponse(long int, const string&, const gr::http::Header&) [PN2gr4http15ResponseBodyTagE] = { |
Same here. At least can you make it fail gracefully and repeat failed request? exception: /build/grive2-2Hxkkx/grive2-0.5.1/libgrive/src/protocol/AuthAgent.cc(159): Throw in function long int gr::AuthAgent::CheckHttpResponse(long int, const string&, const gr::http::Header&) [gr::http::ResponseBodyTag*] = { [gr::http::ResponseCodeTag*] = 403 [gr::http::ResponseHeadersTag*] = HTTP/1.1 403 Forbidden [gr::http::UrlTag*] = https://www.googleapis.com/drive/v2/files?maxResults=1000&pageToken=***&q=trashed%3Dfalse |
I see the same issue here occasionally. For me I believe it coincides with having performed some large maintenance task on my google drive i.e. deleting thousands of files / emptying the bin via the drive web app / drive android app. https://developers.google.com/drive/v3/web/handle-errors#403_rate_limit_exceeded |
Same here, I delete a somewhat big folder ~3000 files of 5mb each and now the sync fail with 403 Rate Limit Exceeded |
+1 I am having this issue as well. |
So I do have a workaround for folks who have a lot of files. TLDR; generate your own oauth creds and swap the default ones out, and then hack the max results in the list function to an insane number. I changed these two lines of code and traded them out for creds I generated myself. I added a hack to make less requests happen by changing maxResults=1000 to I ended up using a simple Dockerfile to play around with building this (since my binary is currently installed from the apt repo, and I didn't want to grab some of the dev libs), and thought I'd pass it along. Ignore if it's worthless to you. Save this as Dockerfile in the top directory of this repo
Build and run with: Because you're not sharing your requests with other people anymore, you aren't hitting the limits on the primary account. This also has the added benefit of you owning your own integration to your data. |
@TopherGopher Cool, I did as you suggested - created the credentials, and recompiled grive2 but I seem to be getting unauthorized_client error. Any idea on what I might be doing wrong? |
OK, figured that out. grive will not update auth token for new credentials for previously downloaded drive. One has to create a fresh directory, get a new auth token and download everything from scratch... |
Ahhh - glad you got it. Not the best solution, but I'm working on a cleaner one. |
This is a show stopper for me. Getting this error all the time. Fix would be appreciated. |
This happens to me all the time. It is really annoying. I've got aroung 60 GB in Drive, and it takes a long time to sync, but it works around a third of the times I run it. Otherwise, it gives the following error (and maybe others sometimes). When running
|
Any update on this issue? Keeps on presenting itself to me. |
Same issue here, I am using my own key pair, When I run
I get
The URL on last list shows Am I missing something? |
same issue here.. Uploading 14.5TB and getting the error after 3.6TB on a 250/250 line. |
I encounter the following exception when I try to sync using the
grive
commandThe text was updated successfully, but these errors were encountered: