Skip to content

Intermittent Developer Connect quota errors on App Hosting deploy #8711

Closed

Description

@jhuleatt

I'm seeing Developer Connect quota errors on some App Hosting deploy attempts. Usually, waiting a minute and retrying fixes the issue. However, I'm not sure why Developer Connect is involved at all, when I'm deploying directly from source.

[REQUIRED] Environment info

firebase-tools: 14.6.0

Platform: macOS

[REQUIRED] Test case

  1. Create an App Hosting backend with firebase init apphosting
  2. Run firebase deploy --only apphosting

[REQUIRED] Steps to reproduce

See test case. Try a few times in a row if it doesn't happen right away.

[REQUIRED] Expected behavior

Successful deploy

[REQUIRED] Actual behavior

Error: Request to https://serviceusage.googleapis.com/v1/projects/<redacted>/services/developerconnect.googleapis.com had HTTP Error: 429, Quota exceeded for quota metric 'Default requests' and limit 'Default requests per minute' of service 'serviceusage.googleapis.com' for consumer 'project_number:<redacted>'.
[2025-06-05T14:40:18.694Z] Error Context: {
  "body": {
    "error": {
      "code": 429,
      "message": "Quota exceeded for quota metric 'Default requests' and limit 'Default requests per minute' of service 'serviceusage.googleapis.com' for consumer 'project_number:<redacted>'.",
      "status": "RESOURCE_EXHAUSTED",
      "details": [
        {
          "@type": "type.googleapis.com/google.rpc.ErrorInfo",
          "reason": "RATE_LIMIT_EXCEEDED",
          "domain": "googleapis.com",
          "metadata": {
            "consumer": "projects/<redacted>",
            "quota_location": "global",
            "quota_limit_value": "600",
            "service": "serviceusage.googleapis.com",
            "quota_limit": "DefaultRequestsPerMinutePerProject",
            "quota_unit": "1/min/{project}",
            "quota_metric": "serviceusage.googleapis.com/default_requests"
          }
        },
        {
          "@type": "type.googleapis.com/google.rpc.Help",
          "links": [
            {
              "description": "Request a higher quota limit.",
              "url": "https://cloud.google.com/docs/quotas/help/request_increase"
            }
          ]
        }
      ]
    }
  },
  "response": {
    "statusCode": 429
  }
}

Activity

  1. added
    api: apphosting
    on Jun 5, 2025
  2. MrRoyce commented on Jun 9, 2025

    @MrRoyce

    I have also started seeing this the past few days. It usually clears up after retrying a time or 2. Its hard to tell if this is a real quota that we can request an update for or if it is an internal GCloud bug. The documentation on increasing quotas is all over the place.

  3. JulindM commented on Jun 10, 2025

    @JulindM

    Its not just apphosting. Trying to deploy functions and just as @MrRoyce mentioned, its intermittent and trying after 2-3 times it works again.


    One thing of note is that when I tried deploying a v2 function for the first time, I received the same error, but looking at the logs, the error was something completely different regarding the inital Eventarc setup.

    Validation failed for trigger *******: Invalid resource state for "": Permission denied while using the Eventarc Service Agent. If you recently started to use Eventarc, it may take a few minutes before all necessary permissions are propagated to the Service Agent. Otherwise, verify that it has Eventarc Service Agent role.
    

    Nevertheless trying to deploy other v2 functions afterwards after the initial eventarc setup, still lead to the intermittent quota errors.

  4. JeremyFrederick commented on Jun 12, 2025

    @JeremyFrederick

    This issue started happening the past couple of weeks. I've tried restructuring my functions so I can deploy in smaller groups, but I still see this error when deploying a single function (ie. firebase deploy --only functions:functionName). This has been a major issue for me when deploying larger groups, I will almost always get 1-2 failures and have to manually go back and deploy those functions.

  5. Shadowstep33 commented on Jun 12, 2025

    @Shadowstep33

    I just joined the club! In case it matters for hunting the bug, I happened to have just recently consolidated two v1 document.onCreate triggers into the same one. Thusly, I had to delete the function from firebase.

    Edit: and it indeed was fixed after trying 2-3 times

  6. maciejgoscinski-latrace commented on Jun 16, 2025

    @maciejgoscinski-latrace

    Any progress or acknowledgement on the topic on Google side?
    Whenever I check the Google Cloud Console Quotas page, there's no data on the actual usage of this quota and no chart is rendered. Almost every time we run our CICD build, the first run fails and we have to retry.
    This costs us additional money for running every build twice, and also puts us in a very inconvenient situation, where the deployment is not atomic, some functions are already updated to new version, and some are not.

  7. pradella commented on Jun 16, 2025

    @pradella

    I'm having the same issue while deploying functions. Started ~2 weeks ago, it happens randomly.

  8. maciejgoscinski-latrace commented on Jun 17, 2025

    @maciejgoscinski-latrace

    Issue is clearly related with the 12 June Google Services outage that affected many sites downstream.
    Google Incident Report
    According to the incident report "On May 29, 2025, a new feature was added to Service Control for additional quota policy checks." which combined with a later policy change on 12 June led to a huge service disruption.

  9. jayman2989 commented on Jun 17, 2025

    @jayman2989

    Having this issue today - haven't had it since I partitioned my functions into sub files years ago, and now I only deploy a grouping of 5-10 at any given time. Long standing, bill paying GCloud account.

  10. ajbarry commented on Jun 17, 2025

    @ajbarry

    I am hitting this intermittently over the last few weeks while only deploying a single cloud function, ie firebase deploy --only functions:myFunction. If firebase-tools cli needs to make a lot of api calls to validate the environment then it seems the quotas are really tight or inappropriate for the tool itself.

  11. mulderpf commented on Jun 18, 2025

    @mulderpf

    I just started getting this since yesterday and the error is:
    Error: Request to https://serviceusage.googleapis.com/v1/projects/XXXXXX/services/cloudscheduler.googleapis.com had HTTP Error: 429, Quota exceeded for quota metric 'Default requests' and limit 'Default requests per minute' of service 'serviceusage.googleapis.com' for consumer 'project_number:563584335869'.

    I left the project number in there as this is the same project_number I believe that everyone is seeing, it's not mine. (Confirmed here that others are seeing the same project number: https://www.reddit.com/r/Firebase/comments/1ldn7j3/firebase_deploy_429_quota_exceeded/ and on StackOverflow from 5 years ago

  12. pascal-cm commented on Jun 18, 2025

    @pascal-cm

    I can confirm this issue persists and that it seems to appear randomly at any stage of a deployment (using firebase deploy from a local machine in my case):

    i  extensions: ensuring required API firebaseextensions.googleapis.com is enabled...
    ✔  extensions: required API firebaseextensions.googleapis.com is enabled
    i  functions: Loaded environment variables from .env.
    i  functions: preparing functions directory for uploading...
    i  functions: packaged /.../firebase/functions (52.82 KB) for uploading
    i  functions: ensuring required API identitytoolkit.googleapis.com is enabled...
    
    Error: Request to https://serviceusage.googleapis.com/v1/projects/.../services/identitytoolkit.googleapis.com had HTTP Error: 429, Quota exceeded for quota metric 'Default requests' and limit 'Default requests per minute' of service 'serviceusage.googleapis.com' for consumer 'project_number:563584335869'.
    

    What we (redditors) conclude is that it's always the same project number, 563584335869, which is not one of our projects and thus has nothing to do with our own quota, i.e. how we use Firebase CLI commands or how many services we call in what time.

    As of writing, I surmise from comments on reddit, it may well happen for deployments of individual functions.

    Leaving this with you @inlined and @taeold.

    I will post detailed and sanitized logs should I encounter this error again.

  13. salvia34 commented on Jun 18, 2025

    @salvia34

    I can confirm this issue persists and that it seems to appear randomly at any stage of a deployment (using firebase deploy from a local machine in my case):

    i  extensions: ensuring required API firebaseextensions.googleapis.com is enabled...
    ✔  extensions: required API firebaseextensions.googleapis.com is enabled
    i  functions: Loaded environment variables from .env.
    i  functions: preparing functions directory for uploading...
    i  functions: packaged /.../firebase/functions (52.82 KB) for uploading
    i  functions: ensuring required API identitytoolkit.googleapis.com is enabled...
    
    Error: Request to https://serviceusage.googleapis.com/v1/projects/.../services/identitytoolkit.googleapis.com had HTTP Error: 429, Quota exceeded for quota metric 'Default requests' and limit 'Default requests per minute' of service 'serviceusage.googleapis.com' for consumer 'project_number:563584335869'.
    

    What we (redditors) conclude is that it's always the same project number, 563584335869, which is not one of our projects and thus has nothing to do with our own quota, i.e. how we use Firebase CLI commands or how many services we call in what time.

    As of writing, I surmise from comments on reddit, it may well happen for deployments of individual functions.

    Leaving this with you @inlined and @taeold.

    I will post detailed and sanitized logs should I encounter this error again.

    Same problem here today.

  14. patternpaul commented on Jun 18, 2025

    @patternpaul

    Searching the code for that project ID shows that it's the default Client ID being used for the CLI. I am going to try cutting my own to see if it resolves the issue long term.

    Just taking a wild stab though

  15. joehan commented on Jun 18, 2025

    @joehan
    Member

    Hey all, sorry for the issues here. As some of yall have noticed, this call is being made against the quota of the shared CLI Oauth project. We'll have a fix going out in the next release to use the customer project instead, which should fix this issue.

  16. MrRoyce commented on Jun 18, 2025

    @MrRoyce

    Thanks @joehan

    Can you give more information on this quota? Is this something new or was it in place before? What is the amount allowed on the free plan? How long is it for, an hour, a day, etc.

    Thanks!

  17. jantorestolsvik commented on Jan 20, 2026

    @jantorestolsvik

    Hi, I have updated to the latest version 15.3.1 and this is still an issue for me.

  18. T-P-F commented on Feb 9, 2026

    @T-P-F

    Also still seeing this periodically with 15.5.1. project_number:563584335869 is still being used internally despite what @joehan said above about a fix.

  19. pradella commented on Feb 9, 2026

    @pradella

    Also still seeing this periodically with 15.5.1. project_number:563584335869 is still being used internally despite what @joehan said above about a fix.

    Happened twice last week, but I was able to deploy on the 2nd try

  20. T-P-F commented on Feb 9, 2026

    @T-P-F

    See this open issue: #9879 (comment)

  21. joehan commented on Feb 9, 2026

    @joehan
    Member

    Hey all, apologies that this is still happening. The fix for this (which moves quota usage to your project instead of the project with the OAuth app used by firebase login) will be included in this week's release of the CLI, 15.6.0.

    I know this sounds quite similar to my last message - we applied this change only to select APIs to be safe, and the upcoming version will cover the cloud billing APIs which have been causing some issues lately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: apphostingtype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions