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
Write back from local web application to the local emulator firestore database is not working #2237
Comments
@adiazarya100 thanks for filing this issue (I saw your StackOverflow post as well). Can you show the content of the |
Hi @samtstern
|
@adiazarya100 thanks for the extra logs! This looks like it's a bug in the Firestore emulator, it's saying the proto is invalid but that shouldn't be possible for a request coming from the SDK. @yuchenshi hopefully can look into it or re-assign. |
Would you mind updating the version of your Firestore client SDK and try again? Let me know if the new SDK version if that still fails. Also, I'm having trouble to reproduce this and I'd really appreciate it if you can simplify your repro to something like this:
Where fields are the actual field values that you used to trigger this bug. I see you must have some Timestamps (or Dates) in there, but I need the exact way how you created such a payload and the exact value. |
Hey @adiazarya100. 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! |
Hey, |
[REQUIRED] Environment info
firebase-tools: 8.2.0
Platform: macOS
[REQUIRED] Test case
Having a project with imported data from my production bucket.
I start the emulator with:
firebase emulators:start --only functions,firestore --inspect-functions --import=MY_DIR
I can see the data in my web application.
When I try to write back to the emulator the request is pending forever
More info here: stackoverflow
[REQUIRED] Steps to reproduce
firebase-export-metadata.json
file that points to your exported data using this trick linkfirebase emulators:start --only functions,firestore --inspect-functions --import=MY_DIR
update
,create
, etc. methods[REQUIRED] Expected behavior
Write back successfully to the emulator.
[REQUIRED] Actual behavior
The request is pending forever. after few minutes you will get a time out. Data does not change
This is my web application config file (Client-side):
Update method:
field
=> The collection I meant to update for example:users
id
=> The id of this specific documentparams
=> The new parameters to update for example:{ name: 'alice' }
Emulator output:
The text was updated successfully, but these errors were encountered: