Search code examples
permissionsgoogle-drive-api

Why does Google Drive api keep getting userRateLimitExceeded error?


I'm making a service that mainly uses Google Drive API. Share files by inserting and subtracting share permissions for multiple files on personal drive. But there is an error in certain users' accounts. This error is an error that occurs in the process of creating and inserting Google drive permission. I tried all the solutions suggested by Google drive support. Delete cache, delete cookies, use another browser, wait 24 hours before using etc. I've tried everything, but it's not working and the error rate of the service is increasing. Who can tell me how to solve this problem?

error response :

{

"code" : 403,

"errors" : [ {

"domain" : "usageLimits",

"location" : "user",

"locationType" : "other",

"message" : "User rate limit exceeded",

"reason" : "userRateLimitExceeded"

} ],

"message" : "User rate limit exceeded"

}


Solution

  • User rate limit exceeded

    This error is flood protection. Resolve a 403 error: User rate limit exceeded

    The solution would be to slow down and implement exponential backoff and retry the request.