GAM-team / got-your-back

Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your computer using Gmail's API over HTTPS.
https://github.com/GAM-team/got-your-back/wiki
Apache License 2.0
2.65k stars 211 forks source link

QuotaLimitExceeded triggered, does not retry, and falsely reports all messages backed up. #333

Open Hello1024 opened 2 years ago

Hello1024 commented 2 years ago
$ gyb --email info@domain.co.uk --service-account

Using backup folder GYB-GMail-Backup-info@domain.co.uk
Got 94113 Message IDs                                                           
GYB needs to examine 94113 messages
GYB already has a backup of 0 messages
GYB needs to backup 94113 messages
<HttpError 403 when requesting https://gmail.googleapis.com/gmail/v1/users/me/messages/155111111112?format=raw&fields=id%2ClabelIds%2CinternalDate%2Craw&alt=json returned "Quota exceeded for quota metric 'Queries' and limit 'Queries per minute per user' of service 'gmail.googleapis.com' for consumer 'project_number:81111111150'.". Details: "[{'message': "Quota exceeded for quota metric 'Queries' and limit 'Queries per minute per user' of service 'gmail.googleapis.com' for consumer 'project_number:81111111150'.", 'domain': 'usageLimits', 'reason': 'rateLimitExceeded'}]">
<HttpError 403 when requesting https://gmail.googleapis.com/gmail/v1/users/me/messages/155111111111?format=raw&fields=id%2ClabelIds%2CinternalDate%2Craw&alt=json returned "Quota exceeded for quota metric 'Queries' and limit 'Queries per minute per user' of service 'gmail.googleapis.com' for consumer 'project_number:81111111150'.". Details: "[{'message': "Quota exceeded for quota metric 'Queries' and limit 'Queries per minute per user' of service 'gmail.googleapis.com' for consumer 'project_number:81111111150'.", 'domain': 'usageLimits', 'reason': 'rateLimitExceeded'}]">
[...100 similar lines...]
backed up 94113 of 94113 messages                                               

GYB needs to refresh 0 messages
$
masgo commented 2 months ago

Same error here:

<HttpError 429 when requesting https://gmail.googleapis.com/gmail/v1/users/me/messages/[...] returned "Resource has been exhausted (e.g. check quota).". Details: "[{'message': 'Resource has been exhausted (e.g. check quota).', 'domain': 'global', 'reason': 'rateLimitExceeded'}]">