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
Realtime Database Emulator crashes with "An unexpected error has occurred." error #4454
Comments
Please try running the emulators again with |
This is the entire cli output when the emulator is started (tried on a new project), following the same steps as I described previously:
Then, after I change
At this point, the emulator stops with exit code 2:
But I think the database is still running in the background because port 9000 is occupied. I cannot start the emulators again because of port conflicts, unless I run something like |
Environment
Operation System:
Windows: (Host)
Browser version: N/A
Firebase version:
Java:
Firebase Product: emulators + database
Problem
Realtime Database Emulator crashes with the error below whenever I make a change to the rules file if there is any error in the json (which always happen as soon as I start typing, unless I paste an already well formated json so that there's no intermidiate state).
Steps to reproduce:
Here is the sequence of commands executed to reproduce the issue on a new project:
After going through the steps above, the emulator starts running correctly, but it stops with an error when I start making changes to the rules file
database.rules.json
and there's an error in the json.Example:
If I try to start the emulator again, there is a port error:
Expected Behavior: The error should happen, since the file has to go through an intermediary invalid state as I type, but the emulator process should remain running until I finish typing a well formated json.
Logs
database-debug.log
firebase-debug.log
The text was updated successfully, but these errors were encountered: