Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function ignored because the database emulator does not exist or is not running #2363

Closed
ahmadalibaloch opened this issue Jun 14, 2020 · 3 comments

Comments

@ahmadalibaloch
Copy link

[REQUIRED] Environment info

Package.json:
"firebase-admin": "^8.12.1",
"firebase-functions": "^3.7.0",

firebase-tools:
8.4.2

Platform:
Windows

[REQUIRED] Test case

firebase emulators:start

[REQUIRED] Steps to reproduce

  1. https://github.com/firebase/functions-samples/tree/master/child-count
  2. stat emulators
  3. start serving functions with database triggers
  4. you will get the problem "function ignored"

[REQUIRED] Expected behavior

functions should should connect with the firestore emulator

[REQUIRED] Actual behavior

!  Your requested "node" version "8" doesn't match your global version "10"
i  functions: Watching "D:\Workspace\a\Cloud Functions\project\functions" for Cloud Functions...
+  functions[helloWorld]: http function initialized (http://localhost:5000/[project-id]/us-central1/helloWorld).
i  functions[countentitities]: function ignored because the database emulator does not exist or is not running.
@samtstern
Copy link
Contributor

@ahmadalibaloch this is working as intended. You are only running the Functions emulator, not the Database emulator.

If you want to run both, first run firebase init emulators and set up the Database emulator then run firebase emulators:start again.

@ahmadalibaloch
Copy link
Author

From the emulator's UI i can access Firestore emulator and make changes to DB, everything is working fine.
I have setup emulators with the firebase init emulators but when I serve the functions after starting emulators, it gives me the message function ignored bcause the database emulator does not exist....

@samtstern
Copy link
Contributor

@ahmadalibaloch this just is not enough information to debug. Please at least show debug logs from emulators:start that show the database emulator running but the functions emulator not recognizing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants