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

FIRESTORE_EMULATORS_HOST's host ignored in clearFirestoreData #193

Open
shackijj opened this issue Feb 25, 2023 · 4 comments
Open

FIRESTORE_EMULATORS_HOST's host ignored in clearFirestoreData #193

shackijj opened this issue Feb 25, 2023 · 4 comments
Labels
type: enhancement New feature or request

Comments

@shackijj
Copy link

hostname: 'localhost',

'localhost' value is hardcoded. Thanks makes it impossibe to run emulators on another host.

I encountered this problem when trying to run tests in Dockerized environment.

@shackijj shackijj changed the title FIRESTORE_EMULATORS_HOST's host ignored clearFirestoreData FIRESTORE_EMULATORS_HOST's host ignored in clearFirestoreData Feb 25, 2023
shackijj added a commit to shackijj/firebase-functions-test that referenced this issue Feb 25, 2023
Use FIRESTORE_HOST in clearFirestoreData (firebase#193)
@diginikkari
Copy link

diginikkari commented May 25, 2023

Because of this clearFirestoreData is also failing with node 18 with ECONNREFUSED ::1:8080 error event though FIRESTORE_EMULATORS_HOST=127.0.0.1:8080 env variable is defined.

@charneykaye
Copy link

charneykaye commented May 29, 2023

I notice that firebase-functions-test IS checking for env variable FIRESTORE_EMULATOR_HOST (as opposed to OP's plural FIRESTORE_EMULATORS_HOST)

@dan-wu-open
Copy link

dan-wu-open commented Apr 15, 2024

@shackijj 's PR would be a good fix, but it hasn't been merged in a long time.

As a workaround, I set my host to "0.0.0.0" in firebase.json

    "firestore": {
      "host": "0.0.0.0",
    },

@CorieW CorieW added the type: enhancement New feature or request label Dec 20, 2024
@CorieW
Copy link

CorieW commented Dec 20, 2024

#184 would resolve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants