You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gem name and version: google-apis-gmail_v1 (0.41.0)
Steps to reproduce
When creating a Filter via the GMail API (Google::Apis::GmailV1) which includes a forward action, this is apparently user-rate limit throttled.
In my Ruby API client I get the following error messages: rateLimitExceeded: User-rate limit exceeded. Retry after 2024-11-12T11:16:42.247Z (Forwarding rules)
Unfortunately, the time returned when to try again is wrong.
My code waits until this time plus a grace period of 60 seconds. When trying at 11:17:42 UTC I get another rateLimitExceeded: User-rate limit exceeded. Retry after 2024-11-12T11:32:42.968Z (Forwarding rules).
Even when I tried the code a couple of hours later, I still get that error on the first request. So the given retry-after time is clearly wrong.
Code example
begin@client=Google::Apis::GmailV1::GmailService.new# Authorization code skippedcriteria=Google::Apis::GmailV1::FilterCriteria.new(…somequery…)action=Google::Apis::GmailV1::FilterAction.new(forward: "[email protected]")# This is a verified address, cross-checked with list_user_setting_forwarding_addressesfilter=Google::Apis::GmailV1::Filter.new(criteria: criteria,action: action)result=@client.create_user_setting_filter('me',filter_content)rescueGoogle::Apis::RateLimitError=>eputs "Rate Limit Exceeded: #{e}end
> User-ratelimitexceeded.Retryafter2024-11-12T11:16:42.247Z(Forwardingrules)
The text was updated successfully, but these errors were encountered:
Environment details
Steps to reproduce
When creating a Filter via the GMail API (Google::Apis::GmailV1) which includes a forward action, this is apparently user-rate limit throttled.
In my Ruby API client I get the following error messages: rateLimitExceeded: User-rate limit exceeded. Retry after 2024-11-12T11:16:42.247Z (Forwarding rules)
Unfortunately, the time returned when to try again is wrong.
My code waits until this time plus a grace period of 60 seconds. When trying at 11:17:42 UTC I get another rateLimitExceeded: User-rate limit exceeded. Retry after 2024-11-12T11:32:42.968Z (Forwarding rules).
Even when I tried the code a couple of hours later, I still get that error on the first request. So the given retry-after time is clearly wrong.
Code example
The text was updated successfully, but these errors were encountered: