Skip to content

[email protected] cause "Could not reach Cloud Firestore backend." error. #7968

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

Closed
youngeun-ahn opened this issue Jan 21, 2024 · 7 comments
Closed

Comments

@youngeun-ahn
Copy link

youngeun-ahn commented Jan 21, 2024

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 [email protected].

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.

@youngeun-ahn youngeun-ahn added new A new issue that hasn't be categoirzed as question, bug or feature request question labels Jan 21, 2024
@jbalidiong jbalidiong added needs-attention and removed new A new issue that hasn't be categoirzed as question, bug or feature request labels Jan 22, 2024
@milaGGL
Copy link
Contributor

milaGGL commented Jan 22, 2024

Hi @youngeun-ahn, thank you for filing this issue. I have a suspect, but not sure if it is the root cause. Could you please try enabling the experimentalForceLongPolling and see if it solves the problem?

Other than that, let's try setting debug level logging to get more log info. Is there any abnormal activity in network tab while this bug happens?

@youngeun-ahn
Copy link
Author

Hello @milaGGL .
I apologize for the delayed response.
I was on a trip this week, so I couldn't check your message earlier.

I tried enabling the experimentalLongPolling option and checking with debug-level logs.
But the bug still occurred and I couldn't find any suspicious logs.
One difference thing is that there are no occurrences of "404" in the network tab.

Screenshots

I've obscured my project name in the screenshot

Console Network
log image

@milaGGL
Copy link
Contributor

milaGGL commented Jan 29, 2024

Strange. Would you be able to provide a minimal repro app so that I can reproduce and debug it on my end?

@google-oss-bot
Copy link
Contributor

Hey @youngeun-ahn. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@malnafei
Copy link

Hi @youngeun-ahn
there is an issue with Firebase JS SDK from 10.7.0 and above. So I advise you to use 10.6.0 untile new release is published.

Thank you

REF: #8017 (comment)

@google-oss-bot
Copy link
Contributor

Hey @youngeun-ahn. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link
Contributor

Since there haven't been any recent updates here, I am going to close this issue.

@youngeun-ahn if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@firebase firebase locked and limited conversation to collaborators Mar 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants