“加载文档时出错";控制台保持打开状态一段时间后,在Cloud Firestore上运行 [英] "Error loading documents" on Cloud Firestore when console left open for a while
问题描述
我注意到一个相当新的现象,那就是当我将控制台保持打开状态超过几分钟时,在刷新页面之前,我的所有收藏夹上都会出现错误加载文档"错误.无论我将其打开多久,这都从未发生过.
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.
我的问题是,这是否会对我的用户访问其信息产生影响.请在下面查看当前规则(有评论是我发布了大约10分钟以进行测试的规则).
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;
}
}
}
谢谢!
推荐答案
就我而言,我认为是卡巴斯基防病毒软件在我成功关闭数据库后阻止了该请求.
In my case i figured it was Kaspersky antivirus that blocks the request, when i close it the database successfully load.
这篇关于“加载文档时出错";控制台保持打开状态一段时间后,在Cloud Firestore上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!