Skip to content

Compatibility error with Node 22.7 #8455

Closed
@lucasmengarda

Description

@lucasmengarda

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions