Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to use Firestore for fresh projects

Further to I cannot enable firestore on a project although I'm not using AppEngine nor Datastore, we created a couple Firebase projects and specifically went out of our way to avoid setting up AppEngine or using the Datastore — because those evidently preclude setting up Firestore — yet we get an error attempting to enable Firestore.

When we click "Create Database" in the Firebase console, we get a "Cannot enable Firebase for this project / An unknown error occurred":

enter image description here

In attempting to diagnose this, in Google Cloud Console, it looks like the first AppEngine project is not set up (and it shouldn't be), speculating that perhaps the issue is with Datastore being enabled.

enter image description here

However, simultaneously we can "Disable application" under the App Engine => Settings:

enter image description here

So the question is: Why can't we enable Firestore for an effectively brand-new project? Is it related to AppEngine? Outside contacting support, is there a way to diagnose this?


Incidentally, during testing I disabled AppEngine in Google Cloud Console, and "Firebase -> Database" now states “App Engine needs to be enabled to use Cloud Firestore"

Would it be correct to assume that this is part of a transitional period for AppEngine & Firestore, and that these issues should be sorted out in the very near future?

like image 240
Brian M. Hunt Avatar asked Sep 11 '18 18:09

Brian M. Hunt


People also ask

Can I use firestore for free?

Cloud Firestore includes a no-cost tier to help you get started at no cost. After you exceed the usage and storage quotas for the no-cost tier, you're charged for the database operations you perform, the data you store, and the network bandwidth you use.


2 Answers

This can be a problem if you have some kind of extension in your browser for handling CORS errors(while xhr requests), just like i was facing the same issue with the extension enabled. Do check it after you disable the extension. Hopefully , it worked for me.

like image 200
Abhitoqi Avatar answered Jan 03 '23 16:01

Abhitoqi


  1. Disable CORS extention from the browser if you have installed one.
  2. reload firebase site and click on enable button.

It will work successfully.

like image 41
Neel Patel Avatar answered Jan 03 '23 15:01

Neel Patel