firebase-admin-go
firebase-admin-go copied to clipboard
IsQuotaExceeded does not return true even if the FCM Rate limit is exceeded.
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.
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.
any progress? @lahirumaramba thank you