-
Notifications
You must be signed in to change notification settings - Fork 898
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
Compatibility error with Node 22.7 #8455
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Here's a full stack trace:
|
Looks like this new line added to node in 22.7 is what's throwing the error https://github.com/nodejs/node/pull/54311/files#diff-ec53d27b3c64c43cc2d4773dd88046ebb149e3d89e31d838df3252c8d5de89adR1066 |
This is happening and has already happened several times on: Firebase CLI: 13.15.4 |
I got caught off guard. I was using FROM node:latest in my Docker for the dev environment, and suddenly the whole system started failing with the error RangeError [ERR_BUFFER_OUT_OF_BOUNDS]. Spent a few hours figuring out the issue, but I switched the Dockerfile to FROM node:lts and everything's back to normal. Probably is a Node bug. |
Do you happen to be using protobufjs or grpc? |
This is a Node bug, and was fixed here: nodejs/node#54526 |
Thanks bud |
Operating System
Linux
Environment (if applicable)
Node 22.7
Firebase SDK Version
9.23.0
Firebase SDK Product(s)
Firestore
Project Tooling
React app with Firebase
Detailed Problem Description
When running a Node.js application that interacts with Firestore on the Google Cloud Platform (GCP), specifically in a Cloud Run environment, I encounter a RangeError [ERR_BUFFER_OUT_OF_BOUNDS]. This error occurs when attempting to retrieve a document from Firestore using the following code:
This issue began happening after updating to Node.js 22.7. I have since downgraded to a previous version, which resolved the issue, but I wanted to report this problem.
Steps and code to reproduce issue
const docRef = database.collection('users').doc(uid);
const doc = await docRef.get();
The text was updated successfully, but these errors were encountered: