400 Billing account for project is not found. Billing must be enabled for activation of service(s)

后端 未结 9 482
故里飘歌
故里飘歌 2021-02-05 00:31

I am create API with firebase via this tutorial here.

On I run:

firebase deploy

I get this error on the command line:

相关标签:
9条回答
  • 2021-02-05 01:32

    You can try this :

    firebase deploy --only hosting
    

    Full docs

    0 讨论(0)
  • 2021-02-05 01:34

    The tutorial you're following is very old. Cloud Functions now requires an active billing account. You will need to add one, even if you don't expect to exceed the free allowance.

    See also:

    • Is Function Cloud in Firebase Free or Not (Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan)

    Consider contacting the author of that article to tell them that they should update their article to be more accurate.

    0 讨论(0)
  • 2021-02-05 01:35

    If you just want to test or follow the tutorial, see this answer.

    If you want to use at the real projects, follow these steps:

    1. Enable Billing for your projects
    2. Enable Cloud Build API
    3. Enable Container Registry API

    From Firebase FAQ:

    From updates on August 17, 2020, Cloud Functions for Firebase will rely on some additional paid Google services, so You have to add billing, enable Container Registry API and Cloud Storage API to use it.

    See more: Cloud Functions pricing

    Edit: Following these steps automatically upgrades your Project plan to Blaze-Pay as you go. - Thanks to @Abhimanyu

    0 讨论(0)
提交回复
热议问题