-
Notifications
You must be signed in to change notification settings - Fork 204
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/triggers grpc-js No connection established errors #568
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
I'm also having this issue – just from today. |
I've been having the same issues as well |
Issue here as well when deploying a scheduled function. Works for about an hour then crashes. There are other threads going on but fail to address the firebase scheduled function side of things. |
I've also been getting this error intermittently yesterday and today on a range of https.onCall functions |
Getting also many occurencies of this error last few days with firestore triggers. trigger: firestore create trigger. firebase packages: |
@mrmodelo this occurs to every kind of function that involves firestore and it's related to firestore changing |
Seeing the same error on Firestore delete triggers. I just started noticing this issue this morning.
Region: North America / east-coast EST |
Same issue here, started to get No connection established error week ago |
This looks resolved. My triggers are firing again. Can anyone else confirm? |
@adamkpurdy It seems to be sporadically failing on our project still. |
Since first seeing the problem, it will usually pass once after deployment, and then fail consistently after |
@adamkpurdy since last functions deploy, I can't see any errors, but for me it's too early to tell. I'll leave this open for some days and if there won't be any more related errors I'll close this. |
I'm seeing the error again. |
I am still experiencing this issue as well. |
Trying to narrow down our issue - are you guys doing anything with storage inside these functions? |
I was experiencing this since yesterday morning. I found this thread about 30 minutes ago, figured since grpc was mentioned I'd reinstall. I blew away node_modules, package-lock.json, then reinstalled and redeployed. Everything is back to normal so far. I haven't checked what is any package changed yet, so fingers crossed. |
@jhk115 I'm not doing anything with storage. Only Firestore. |
@jhk115 only Firestore |
@jhk115 This is because of a dependency that firestore is using called
There have been workarounds referenced if you look further back in the thread and to the linked issues on the original comment, however there are still situations where you can not manage this dependency (to our knowledge so far) |
Hey peoples: I just did a dep upgrade after reading grpc/grpc-node#1027:
I've had three successful triggers fired. Anybody else wanna try and post their results? |
@adamkpurdy Upgraded also, working for me so far! |
I had a rogue reference in my package-lock.json After nuking that and starting from a clean slate I was able to get the correct grpc-js version. For anyone else running into this issue right now, you need to delete BOTH your node_modules and your package-lock.json For those interested it was under google-gax as a required dependency. It should read:
I have since had three scheduled calls go off with no failures. Fingers crossed this is the one, thanks for the timely responses from all and the community support! |
It looks promising on our end! Thanks, everyone. |
Updating from |
Finally the problem came back after 1h... Waiting for a fix ! |
@floriangbh please go into package-lock.json and see which grps version is being referenced. Also may be good to do clean slate and delete your node_modules and package-lock.json and run an npm install |
@floriangbh I did the same as @Mrmodel is mentioning. I haven't seen the issue since, and I've been firing delete triggers since yesterday without a problem. Please post your results after a clean slate. |
Yes I confirm this is ok since yesterday after the cleanup ! Thanks |
I still experience this, running |
Dealing with this same issue just trying to use firestore. Was using @google-cloud/firestore like OP, but tried switching to firebase-admin to see if it helped. No dice. I get a few successful calls thorugh when the service is newly launched, but after a few minutes, I begin getting this error message. |
@ewindso & @colepanike I just checked my collections for the proper triggers, and all is still firing as expected. I hate to ask the basics but are you sure you're deleting your /src/functions/node_modules & /src/functions/package-lock.json, updating your deps, and pushing your changes that include your new deps in your /src/functions/package.json to your firebase app? Again, I know these are basic questions, but I am not having the failure in my functions console, and my firestore data is updating as expected via the triggers. |
Nope, you were right to do your due diligence. I hadn't gotten a fully clean state. Looks like the workaround does work for me. |
Workaround worked for me, boys! |
@adamkpurdy all good -- yes i did that, however i used |
Why this error happened from no where in my project like 3 days back and the functions are completely working fine now even though i didn't make any changes to package.json. |
call functions stop work for no reason. just thro "No connection established" and out function execution to 36secons,
|
Also having the same exact errors and don't know how to fix. Failure: { Error: No connection established |
Updating Firebase FireFunctions worked |
I am still receiving this error at random after a full clean and update... Trigger types: cloud storage, firestore create/update, http, and scheduled Error: No connection established at Http2CallStream.call.on (......) Removed node-modules and package-lock Runtime node 10 Here is updated package.json dependencies
package-lock
Clean build and deploy last night, scheduled functions received this error on about 20% of its calls Any thoughts? Going to try another clean/deploy today, will update if I make progress. |
@andyshear make sure you I will close this because I haven't encountered not a single one No connection established since I deleted
|
@clytras I do a I received the no connection error yesterday afternoon 1430 MST, this is after 24hr and one full delete/re-install cycle.. Second delete and re-install was around the time of my comment yesterday. So I continued to receive errors for 4hr after that, then nothing.. I have not seen the error since, leading me to believe something was updated on Googles end (cached version of my package-lock.json possibly??) Just odd to me that the problem wasnt resolved on deployment of a "clean" package. I will open another issue if this problem persists. |
This issue is not solved. Deleting package-lock.json and npm modules doesn't solve the problem. |
I'm also getting the same issue using |
Since this wouldn't work on my Firestore project, we got it to work with npm exif-js and blueimp-load-image. But you have to allow data CORS. https://www.agiratech.com/how-to-fix-cors-issue-in-firebase-storage/ Basically after you allow CORS on your storage bucket, you load the image url, orient with Exif-JS and then display on canvas with the correct orientation. A lot of process is involved. Sadly, the latest MacOS 10.15.4 update bricked the EXIF again on Safari. |
Hi , Has anyone found a solution to this ? I am facing a similar problem. I am reading a CSV file and deleting some records mentioned in the file . The program runs fine in the beginning and then throws Error: 14 UNAVAILABLE: No connection established. const csv = require('csv-parser') var admin = require("firebase-admin"); var serviceAccount = require("D:\NodeJS\FirestoreConnection1\trackkarona-firebase-adminsdk-lr090-3d8f687f9b.json"); admin.initializeApp({ let db = admin.firestore(); let drugRef = db.collection('Med_Data_Test3'); let drugDocumentId = ''; fs.createReadStream('onemg_main_faq.csv') if (snapshot.empty) {
.on('end', () => { |
This started popping up again today for me inside a cloud function.
|
Still having this issue. Clearing the |
I don't know if it helps anyone, because I'm not using grpc-js, but I got an error in my Firebase function logs:
It looks like the function had spontaneously stopped working around 11:30pm last night. I found this issue thread and ran These were the packages that got updated:
|
Just for a record, I started to experience the same exact problem 3 days ago. Clean slate does not really help. Spontaneously some function will run but the majority will fail. The logs output snippet is this: "events.js:174
Error: 14 UNAVAILABLE: No connection established No workaround found yet that works for rme. |
Experiencing same issue here, recently created project, testing on emulators suite. |
Same error here. No solution yet? |
I am experiencing the same error in 2024 .. Anyone found the solution? |
Related issues
googleapis/nodejs-firestore#768
firebase/firebase-js-sdk#1783
grpc/grpc-node#1027
Version info
node: 10.15.1
firebase-functions: 3.3.0
firebase-tools: 7.6.0
firebase-admin: 8.6.0
Test case
Steps to reproduce
Expected behavior
Every call should be get executed without gRPC related errors.
Actual behavior
Every now and then we get a No connection established error:
It encountered 8600 exact errors for the past week:
For every other firestore operation, we used old
grpc
as described here googleapis/nodejs-firestore#768 (comment):but we don't know how to set old grpc for
functions.region(region).firestore
to get rid of all these errors.We are not sure if here is the right place to post this issue or the https://github.com/googleapis/nodejs-firestore. If this is the case, the please close this issue and we'll go and report it on the nodejs-firestore repo.
Were you able to successfully deploy your functions?
No errors during functions deploy.
The text was updated successfully, but these errors were encountered: