-
Notifications
You must be signed in to change notification settings - Fork 988
Specifying custom host
for Data Connect emulator causes crash
#8376
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
Comments
Hey @OutdatedGuy, thanks for the report. Discussed this with our engineering team and our initial guess is that this might be a port forwarding issue. Could you try setting {
"emulators": {
"dataconnect": {
"dataDir": "dataconnect/.dataconnect/pgliteData",
"port": 9399,
"host": "0.0.0.0"
},
...
},
"dataconnect": {
"source": "dataconnect"
}
} Also, I think we should improve that error message to give information on what error occurred. |
@aalej setting |
@OutdatedGuy Glad to hear that you've found a working solution here - for anyone else running into this, using On my machine, when I point at my local private IP, I get a 503 from /emulator/configure withe the following message: This message is coming from the grpc library that the Data Connect emulator uses - it does not recognize the private IP as a local address, so it rejects local (fake) credentials. I believe this is actually WAI, since that IP is accessible by other machines in your network. Because of this, we won't be able to support setting host to 192.168.x.x - however, we should definitely have a better error message here tho. |
@joehan but all the other emulators support setting local IP as host, wouldn't it make sense for Data Connect to also support it? Also I don't want to accept connections from all devices from my network to all of my assigned IP addresses. Just the one I would set. |
Thinking about this more, we probably could just not use this host for communication between the data connect emulator and PGlite - that would circumvent the auth issues and still let you connect your app over 192.168.x.x. Reopening this issue. |
Hi, I'm having the same issue when trying to update
NOTE: I'm on Windows |
Version 14.2.1 is having the same issue Logs:
It also is creating unwanted dependencies in the
I have to keep rolling back to version |
[REQUIRED] Environment info
firebase-tools: 14.0.0
Platform: macOS
[REQUIRED] Test case
N/A
[REQUIRED] Steps to reproduce
Create a firebase project with Data Connect using:
Update the
firebase.json
file to configure port and host:Start the emulator with:
See the error:
[REQUIRED] Expected behavior
The Data Connect emulator should start successfully without any errors on the specified host and port.
[REQUIRED] Actual behavior
Emulator fails to start when custom (local IP) host is specified in
firebase.json
.Additional Info
dataconnect-debug.log
The text was updated successfully, but these errors were encountered: