Error fetching Firestore indexes

545 views
Skip to first unread message

gaby dayan

unread,
May 17, 2020, 7:43:25 PM5/17/20
to Firebase Google Group
Hi, 

I'm running firebase in a react app and when I run firebase init it breaks after 

 What file should be used for Firestore indexes? firestore.indexes.json


Error: Error fetching Firestore indexes


Can anyone help me?


The firebase version is 8.2.0


This is how the process looks like:


firebase init


     ######## #### ########  ######## ########     ###     ######  ########

     ##        ##  ##     ## ##       ##     ##  ##   ##  ##       ##

     ######    ##  ########  ######   ########  #########  ######  ######

     ##        ##  ##    ##  ##       ##     ## ##     ##       ## ##

     ##       #### ##     ## ######## ########  ##     ##  ######  ########


You're about to initialize a Firebase project in this directory:


  /Users/gabyzifferman


Before we get started, keep in mind:


  * You are initializing your home directory as a Firebase project


? Which Firebase CLI features do you want to set up for this folder? Press Space

 to select features, then Enter to confirm your choices. Firestore: Deploy rules

 and create indexes for Firestore, Functions: Configure and deploy Cloud Functio

ns, Hosting: Configure and deploy Firebase Hosting sites, Storage: Deploy Cloud 

Storage security rules, Emulators: Set up local emulators for Firebase features


=== Project Setup


First, let's associate this project directory with a Firebase project.

You can create multiple project aliases by running firebase use --add, 

but for now we'll just set up a default project.


? Please select an option: Use an existing project

? Select a default Firebase project for this directory: likeadas-app (Likeadas A

pp)

i  Using project likeadas-app (Likeadas App)


=== Firestore Setup


Firestore Security Rules allow you to define how and when to allow

requests. You can keep these rules in your project directory

and publish them with firebase deploy.


? What file should be used for Firestore Rules? firestore.rules


Firestore indexes allow you to perform complex queries while

maintaining performance that scales with the size of the result

set. You can keep index definitions in your project directory

and publish them with firebase deploy.


? What file should be used for Firestore indexes? firestore.indexes.json


Error: Error fetching Firestore indexes


Kato Richardson

unread,
May 18, 2020, 11:38:46 AM5/18/20
to Firebase Google Group
Hello Gaby,

If you aren't going to use Firestore, then you should skip that in the setup process, if you are going to use Firestore, then go into the console and visit the Firestore page to enable it.

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/feb6c66e-ee08-4a6f-8e6f-74a85d805abb%40googlegroups.com.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Reply all
Reply to author
Forward
0 new messages