Skip to content

firebase@10.7.0 cause "Could not reach Cloud Firestore backend." error. #7968

@youngeun-ahn

Description

@youngeun-ahn

Operating System

Windows 11

Browser Version

Chrome 120.0.0.0

Firebase SDK Version

10.7.2

Firebase SDK Product:

Firestore

Describe your project's tooling

React 18 with craco.
I used react-query@^3 and @react-query-firebase/firestore to use firebase with hook.
Actually @react-query-firebase/firestore depends on firebase@^9, but I think there doesn't seem to be a significant relationship, as there are no issues observed with version firebase@10.6.0.

Describe the problem

Console
image

Network
image


Description
I have encountered the 'offline' error in my project today, and the issue occurs only when accessing a specific Firestore document. Intermittently, it success to access the document, but most of the time, the error occurs.
Though not certain, it seems suspicious when the document name or path contains an _(it just a speculation...).

The recent change in my project was upgrading from firebase@^9 to firebase@^10.
So, after downgrading to firebase@9, the problem was resolved.

However, to pinpoint the exact version where the issue occurred, I conducted tests by incrementally upgrading the minor version starting from 10.0.0.
The error did not occur up to version 10.6.0, but it occurs with version 10.7.0.

Steps and code to reproduce issue

It might be challenging to implement reproduction steps since the problem occurs intermittently with a specific document.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions