Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Drive Rest API: Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup

I'm migrating my app from deprecated Google Drive Android API to Drive Rest API. I implemented required behavior using new packages and everything works fine in emulator - app asks for access to user's Drive and getting it uploads files. When I started to test it on real device I get this error:

Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup

I already had configured project in https://console.developers.google.com that worked fine with old library (it has required ../auth/drive.file scope). According to migration documentation - old configuration should work with new library without changes.

What other reasons could be for this error?

like image 241
4ybaka Avatar asked Oct 13 '19 21:10

4ybaka


People also ask

How do I fix the user rate limit exceeded on Google Drive?

Resolve a 403 error: User rate limit exceeded To fix this error, try any of the following: Raise the per-user quota in the Google Cloud project. For more information, request a quota increase.

What is error 403 rate_ limit_ exceeded?

Authorization Error Error 403: rate_limit_exceeded This app has reached its sign-in rate limit for now. Google limits how quickly an app can get new users. You can try signing in again later or ask the developer ([email protected]) to increase this app's sign-in rate limit.

What is HTTP error 403 in Google Drive?

This error is usually labeled as the http error 403. There may be several reasons why you are seeing this error message. It may be related to expired or cached browser cookies, a corrupted Google Drive download, and more.

How many authorization options are there in Google Drive?

The five Google Shared Drive permission levels include: Managers. Content Managers (the default for new members) Contributors.


1 Answers

Funny, I've been dealing with this the past so many days and waiting 24 hours to see if something fixed it. Its a really crappy problem.

PRIMARY ANSWER

I have a feeling you're using ProGuard same as I am assuming by "real device" that you're building signed apk as you do not specify if you're using signed or debug apk. ProGuard can cause this error to happen. I fixed it using the following.

# Fix OAuth Drive API failure for release builds
-keep class * extends com.google.api.client.json.GenericJson { *; }
-keep class com.google.api.services.drive.** { *; }
-keepclassmembers class * { @com.google.api.client.util.Key <fields>; }

SECONDARY ANSWER

Note that you DO NOT need to use keys/tokens using the Drive rest API with Android like you may find from other solutions (it may not hurt either, but it can). It doesn't match up here to what people talk about elsewhere (here they don't know what they're talking about).

See my notes here for further info: Google Drive via OAuth release version receives dailyLimitExceededUnreg

IF you have the problem however in debug build then you did not do everything correctly. My notes should get you on the right track.

If you need further help, I might assist because of how nuts it is.

like image 192
CmosBattery Avatar answered Oct 17 '22 19:10

CmosBattery