“Error loading documents” on Cloud Firestore when console left open for a while

*爱你&永不变心* 提交于 2019-12-31 08:58:47

问题


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!


回答1:


In my case i figured it was Kaspersky antivirus that blocks the request, when i close it the database successfully load.




回答2:


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.



来源:https://stackoverflow.com/questions/49660525/error-loading-documents-on-cloud-firestore-when-console-left-open-for-a-while

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!