Short answer
Check the project ID in the error against the projectId in your Firebase config or service account. If it is the right project, create the Firestore database in the Firebase console, which also turns the API on. If the API was turned off, enable it with gcloud services enable firestore.googleapis.com; enabling the API alone doesn’t create a database. Wait a few minutes, then retry.
Rather not fix it yourself? App Fix Ticket starts with a fixed-price diagnosis, then a fixed price for the fix before any fix work.
Why the API is off, and the fix
01
The project has no Firestore database yet
“In the left panel, go to Databases & Storage > Firestore. Click Create database. Select a location for your database.” Firebase, Get started with Cloud Firestore
A new Firebase project doesn’t create Firestore until you do. Create the database in the console, pick its location carefully, then run the app again.
02
The app points at another project
A firebaseConfig, google-services.json or service account key copied from another project sends requests there. Compare the project number or ID in the error with the one in your config, and use the files from the right project.
03
The API was turned off in Google Cloud
“The gcloud services enable command enables a service with the name specified for the current project.” Google Cloud, Enable and disable services
Someone may have disabled the Firestore API in this project. Turn it back on in the API Library or from the command line. Enabling it needs a role that can manage services, such as Owner or Editor.
gcloud services enable firestore.googleapis.com --project YOUR_PROJECT_ID04
It was just enabled
The error text itself asks you to wait a few minutes after enabling the API. Retry after that before changing anything else.
Checked against the vendor’s docs on : Firebase docs: Get started with Cloud Firestore; Google Cloud docs: Enable and disable services.
Rather hand it over?
Fixed scope, fixed price, paid upfront. The work happens in writing; no call needed.
- from $450App Fix TicketOne reproducible bug in an existing mobile or web app, diagnosed and fixed.See scope and start
- from $450AI-Built App RescueA Lovable, Bolt or Cursor app checked end to end in 3 days, then its worst problems fixed at a fixed price.No issues worth fixing, no charge. If the Launch Check finds nothing rated medium or higher, Simon refunds the full $450. You keep the report either way. This applies to the first 10 Launch Checks bought after October 30, 2026.See scope and start
“Very responsive, attentive to fixing bugs, and completed the project as needed! Thank you!”
Related: Firestore “client is offline” · Firebase “Missing or insufficient permissions” · Firebase Functions deploy failed · Firestore unsupported field value: undefined