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

JSON data not being imported into Firebase Emulator #845

Closed
ThatZacman opened this issue Aug 18, 2021 · 2 comments
Closed

JSON data not being imported into Firebase Emulator #845

ThatZacman opened this issue Aug 18, 2021 · 2 comments

Comments

@ThatZacman
Copy link

When I import the data using the firestore-import --accountCredentials serviceAccountFile.json --backupFile output.json command the process runs successfully, but when refreshing the emulator there is no data in Firestore. What could I be doing wrong as the exported json file hasn't been altered.

The commands that I run were:

  • firestore-export --accountCredentials serviceAccountFile.json --backupFile output.json
  • export FIRESTORE_EMULATOR_HOST=0.0.0.0:8081 (I have confirmed the port is correct as it throws an error when attempting another port).
  • firestore-import --accountCredentials serviceAccountFile.json --backupFile output.json

Is it still possible to import data this way? Any help would be greatly appreciated.

Thanks in advance.

@ThatZacman
Copy link
Author

The issue was that the service account credentials I had generated from firebase was not for the same project I had linked my firebase emulator too.

@pascalbe-dev
Copy link

Hey, I'm having a similar issue.

I actually do get a "All done 🎉" result, but no data is imported to the emulator. I'm also wondering, if the account credentials are required and if yes, which ones I should use.

Does anyone have a tipp?

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