firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

Firebase app connected to Firestore emulator gets strange/inconsistent results

Open ivoelbert opened this issue 4 years ago • 3 comments

[REQUIRED] Environment info

Platform: macOS

backend

firebase-tools: 10.6.0 firebase-admin: 9.12.0

frontend:

firebase: 8.10.1

[REQUIRED] Test case

It's hard to make a test case cause I'm getting different results across different computers.

Currently we're running functions, auth, and Firestore emulators, and those seem to be working fine. If we call an emulated function that reads/writes to Firestore, it works. I can go to the emulators UI and see the data in there.

The problem comes when our web app talks to the Firestore emulator. The network shows that we are talking to it (localhost:8080), but the same query on one computer returns some results, and on another it doesn't, even though in the Firestore emulator UI it shows data on both computers.

[REQUIRED] Steps to reproduce

Our repo is private, and I am not able to reproduce this behavior in a smaller scale.

[REQUIRED] Expected behavior

I should be able to read the data in any of my collections.

[REQUIRED] Actual behavior

I can only read data from some collections.

if I read the global-settings collection, I can see the data in both computers (an array of 10 elements) if I read the users-v1 collection, I can't. I get an array of a few elements in one computer, and an empty one in another (with the same data in both emulators)

ivoelbert avatar Apr 14 '22 19:04 ivoelbert

Please provide a reproducible example - it's hard to determine what the configuration is that causes the issue here.

christhompsongoogle avatar Feb 28 '23 00:02 christhompsongoogle

Hey @ivoelbert. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Mar 08 '23 02:03 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@ivoelbert if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Mar 13 '23 01:03 google-oss-bot