-
Notifications
You must be signed in to change notification settings - Fork 356
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
[Firestore] Error: connect EADDRNOTAVAIL 2607:f8b0:400e:c01::5f:443 -> Thousand times over a day #2259
Comments
I found a few problems with this issue:
|
Hi @MorenoMdz , thanks for reporting. I am not familiar with the NestJS setup you're using. The error message seems to be related to your networking (e.g. are you using a VPN? network proxy? is the address and port available/reachable?). |
Hey, we are not using a VPN or proxy, our service runs on a Render.com Node service without any specific configurations. The weird part is that the requests do work normally, all the Firebase calls like Auth and Storage work fine and so do the Firestore calls, but we do see those errors happening in our DataDog logs. Could it be related to the Firestore snapshot listeners? We have a listener open to capture any changes in our feature flag document we have in Firestore, I wonder if those could be affected by the Node express requests somehow? |
It could be related to your listeners. That could explain why it occurs many times over the course of the day. Might be due to intermittent connectivity issues and the listener reacting to them. Listeners also try to reconnect if they experience non-fatal errors. |
I think it is related to this, I disabled the onSnapshotListener and deployed to test and started seeing the GRCP RST errors like in this issue: |
Thanks for digging further into it. The |
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
We have a NestJS server running on Render.com on a GCP network.
All our Firestore calls seem to work fine, we can read and write data as expected, with very large access at some moments on a day, that is not a problem.
But while checking our DataDog logs, we notice thousands of errors that always have the same pattern:
connect EADDRNOTAVAIL 2607:f8b0:400e:c08::5f:443 - Local (:::0)
queryTxt ENODATA firestore.googleapis.com
But the requests itself work.
Relevant Code:
The Nest FB admin is setup like this:
We use Firestore extensively with:
But we cant align the errors with any specific request, it seems to happen a lot and everywhere. Just to confirm, the Firestore requests seem to work correctly even with these error Spans in DataDog, as the actual request works fine and returns/updates the data as needed.
The text was updated successfully, but these errors were encountered: