43

While I run the command firebase deploy I get this error:

Error: HTTP Error: 400, Project 'my_project' is not a Firestore enabled project.

enter image description here

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Stepres stepres
  • 811
  • 1
  • 7
  • 12
  • 1
    Thanks, saved my day. Yes, the Firestore database is not created( while the realtime database is initialized), so manually create the Firestore database using default settings, then "firebase deploy" again, OK now. – Jiping May 15 '19 at 23:41

8 Answers8

36

Are you trying to use Cloud Firestore?

  • If so, visit the database section of the console and initialize Cloud Firestore
  • If not, remove the firestore.rules file locally
Dan McGrath
  • 41,220
  • 11
  • 99
  • 130
18

I figured it out myself. It was just an ignorance while using the firebase console. I just had to enable the firestore beta from the console itself, under Database.

Stepres stepres
  • 811
  • 1
  • 7
  • 12
18

If you’re not using Cloud Firestore, comment firestore in firebase.json

enter image description here

BonTheBeerman
  • 304
  • 2
  • 8
12

I had the same problem. The solution is this: Go to Firebase console and login there [Firebase console]. Here you will see your Recent projects. Go to your project e.g. “stepintothepresent” and then go to database at left side panel, then choose cloud firestore and then I selected the 2nd option.

Firebase Console > Your Firebase Project > Database

After that I run firebase deploy from command prompt and the result is this

Result from windows command prompt

TT.
  • 15,774
  • 6
  • 47
  • 88
ArefinDe
  • 678
  • 7
  • 13
  • this is good, thanks. It's literally just changing that from realtime Database to Cloud Firestore. But init some stuff and allow it to work. Thanks – mewc Apr 28 '18 at 05:26
0

You can enable the REST APIs using below URL:

https://console.cloud.google.com/apis/library?project=

Akshay Gulhane
  • 121
  • 1
  • 7
0

selected Cloud Firestore while initial firebase setup?

Just go to console and enable Cloud Firestore. When prompted for once you can select test mode to start off and later change it to private.

Piyushh
  • 573
  • 4
  • 16
0

I had to create a DB environment and it worked fine after that. I'm using the realtime DB, not Cloud storage so it shouldn't have stopped it, anyway, its fixed.

-2

someone with another answer please.

Are you trying to use Cloud Firestore?

If so, visit the database section of the console and initialize Cloud Firestore * Can you post the url please?

If not, remove the firestore.rules file locally *Error: Error reading rules file firestore.rules

YuberV
  • 7
  • 7