Home > Software design >  Firestore emulator missing some collections after being successfully launched
Firestore emulator missing some collections after being successfully launched

Time:11-02

I've been trying to launch a test/copy firestore in my local emulator and everything is great, except for one thing: my firestore emulator is missing collections and stops working because of unknown reason.

I have exported prod Firestore DB to local storage as 'some_date.tar' extention and unarchived this file to my project root. After which I have run firebase emulators:start --import ./firestore-local-data (i am already logged in to firebase and project is selected). The emulator runs correctly and functions are working, but when you go to UI of the emulated Firestore you can not open all collections and view them. For example smaller collections work just fine, but as soon as I open the huge one it all breaks and I can no longer open even smaller if I had not opened them before the huge one. I enabled flow control in my Windows 10 as traceback suggests but it didn't help. I also noticed that when I click on the 'department' collection I get 400 Bad Request. Please help me to solve this issue. Thank you!

I enabled flow control in my Windows 10 as traceback suggests but it didn't help. I also noticed that when I click on the 'department' collection I get 400 Bad Request. Please help me to solve this issue. Thank you! PS. Can't post images because of low reputation

CodePudding user response:

firebaser here

I checked with our engineering team, and this seems to be a known issue in the Firestore emulator indeed (as you suspected) related to the size of the collection.

There currently is no known workaround aside from using less data. In case that is not possible, I recommend following along with (and potentially chiming in on) issues #4672 and #5197 in the source repo.

  • Related