Reputation: 12524
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!
Upvotes: 32
Views: 17864
Reputation: 216
In my case I figured it was Kaspersky antivirus that blocks the request. When I closed it the database successfully loaded.
Upvotes: 16
Reputation: 435
For me, it was AdBlock that was making the issue - still, in 2022. Disable it and it should work fine :)
Upvotes: 7
Reputation: 2424
In my case it was that I was using Fiddler. I guess the client does some kind of certificate pinning.
Upvotes: 1
Reputation: 2623
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.
Upvotes: 5
Reputation: 101
Instead of turning off Kaspersky you can add it to a list of trusted websites by managing the exclusions. How to add trusted website
Upvotes: 1
Reputation: 1271
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.
Upvotes: 6