firebase-admin-go icon indicating copy to clipboard operation
firebase-admin-go copied to clipboard

IsQuotaExceeded does not return true even if the FCM Rate limit is exceeded.

Open laststem opened this issue 4 months ago • 2 comments

We got 429 HTTP status from FCM server.

HTTP response body:

{
  "error": {
    "code": 429,
    "message": "Quota exceeded for quota metric 'Send requests' and limit 'Send requests per minute' of service 'fcm.googleapis.com' for consumer 'project_number:xxx'.",
    "status": "RESOURCE_EXHAUSTED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "RATE_LIMIT_EXCEEDED",
        "domain": "googleapis.com",
        "metadata": {
          "quota_limit_value": "xxx",
          "consumer": "projects/xxx",
          "quota_metric": "fcm.googleapis.com/send_requests",
          "quota_unit": "1/min/{project}",
          "service": "fcm.googleapis.com",
          "quota_location": "global",
          "quota_limit": "SendsPerMinutePerProject"
        }
      },
      {
        "@type": "type.googleapis.com/google.rpc.Help",
        "links": [
          {
            "description": "Request a higher quota limit.",
            "url": "https://cloud.google.com/docs/quotas/help/request_increase"
          }
        ]
      }
    ]
  }
}

When the FCM Rate limit was exceeded, the above HTTP Response was returned, but when passed to IsQuotaExceeded, false was returned.

laststem avatar Sep 22 '25 08:09 laststem

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Sep 22 '25 08:09 google-oss-bot

any progress? @lahirumaramba thank you

laststem avatar Dec 01 '25 06:12 laststem