Closed
Description
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();