"Error loading documents" on Cloud Firestore when console left open for a while
Asked Answered
R

7

31

I noticed a quite new phenomenon which is that when I leave the console open for over a couple of minutes I get an "Error loading documents" error on all my collections until I refresh the page. This never happened before regardless of how long I left it open.

The only thing that has changed was that I was experimenting with the rules, but at the end went back to the default setup.

My question is whether this might have repercussions on how my users access their information. Please see below the current rules (commented are the ones that I published for about 10 minutes to test).

service cloud.firestore {
  match /databases/{database}/documents {

//     match /users/{user}/{document=**} {
//       allow read;
//       allow write: if request.auth.uid == user;
//     }

//     match /items/{document=**} {
//       allow read;
//       allow write: if get(/databases/$(database)/documents/users/$(request.auth.uid)).data.admin == true;
//     }

//     match /completedItems/{document=**} {
//       allow read;
//       allow write: if get(/databases/$(database)/documents/users/$(request.auth.uid)).data.admin == true;
//     }

    match /{document=**} {
      allow read, write: if request.auth.uid != null;
    }

  }
}

Thanks!

Ruhr answered 4/4, 2018 at 21:13 Comment(11)
I am having the same problem with the database page in console.firebase.google.com. Not only a short period of time after it is displayed but also when I go there for the first time to check a posting.Shebeen
I'm experiencing the same issues; however, they are not attached to the Firebase rules. I currently have the default Firebase rules yet I'm having an "Error Loading documents"Halifax
I have got the same issue, here's a screenshot: pbs.twimg.com/media/DaCbsoSW4AANYjh.jpg:largeBeckwith
I'm also having the same problem. Has anyone reported the problem to Google?Kneehigh
I am also having the same problem. Reloading the page I get the circle spinning for ages in the documents column and then the message "Error loading documents"Couplet
I'm experiencing the same issue but know that firestore is still currently in Beta so remember we're using a product this is still in very active development. I'm sure this is something the Firebase team will resolve sooner than later.Eskridge
@FrankvanPuffelen, Any comments? I am facing it now every 20 secondsRelations
I have the same problem and have to refresh browser every time to view the dataAstringent
same here, every time i change the tab to look at something else I need to refresh the console because of this error (same as Ben posted)Chandos
Feb 2020, problem still exists.Vast
Jep, also having this issue right now. Started one our ago. In the DevTools I get a "No 'Access-Control-Allow-Origin' header" Error and "Could not reach Cloud Firestore backend." Seems like it cannot even get the firebase client library.Soma
X
16

In my case I figured it was Kaspersky antivirus that blocks the request. When I closed it the database successfully loaded.

Xylography answered 25/5, 2018 at 18:57 Comment(0)
A
6

From the firebase status dashboard issue https://status.firebase.google.com/incident/Console/18006:

We are experiencing an issue with the Cloud Firestore Console where, after a few minutes, it shows an error trying to load documents. Currently, the workaround is to click on another collection or to refresh the browser. We are actively investigating the issue and will post an update once more information is available.

Update: I have reached out to Firebase on 18 April 2018 for any updates on the issue, their response below:

Sorry, but I couldn't share any timelines or specifics regarding this issue at the moment. Rest assured that this bug is closely monitored, and is being actively worked on by our engineers, as this affects many users such as yourself.

Update 25 April 2018 from Firebase Console:

The issue with the Cloud Firestore Console where, after a few minutes it would show an error trying to load documents, should have been resolved for all affected projects as of 09:30 US/Pacific. We will conduct an internal investigation of this issue and make appropriate improvements to our systems to prevent or minimize future recurrence.

Astringent answered 15/4, 2018 at 12:12 Comment(1)
This same status is being reported as of April 12, 2018 at least through now (April 20, 2018). Would be funny if they lifted the message directly from ^ this comment.Potman
L
5

In my case the reason was that I had exceeded my daily quota and for some reason it would not show the documents. I'd suggest checking if you've surpassed your daily quota and if so wait until it rolls over to the next day.

Leary answered 4/4, 2020 at 18:45 Comment(0)
V
5

For me, it was AdBlock that was making the issue - still, in 2022. Disable it and it should work fine :)

Vaudeville answered 21/9, 2022 at 12:49 Comment(1)
Just had this issue in console.cloud.google.com and disabling AdBlock helped me out. Thank you!Epoxy
C
1

Instead of turning off Kaspersky you can add it to a list of trusted websites by managing the exclusions. How to add trusted website

Celandine answered 3/2, 2020 at 5:32 Comment(0)
A
1

In my case it was that I was using Fiddler. I guess the client does some kind of certificate pinning.

Ambulate answered 19/4, 2020 at 9:59 Comment(0)
R
1

In my case it was because the Chrome extension "CORS Unblock".

Rhaetia answered 25/5, 2023 at 19:56 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.