Firestore规则>确定哪个收集/规则失败 [英] Firestore Rules > Determine which collection / rule is failing

查看:45
本文介绍了Firestore规则>确定哪个收集/规则失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以查看Firestore中失败的特定集合/规则吗?我查看了firestore-debug.log(在localhost上运行)以及Firebase UI. Firestore将错误记录到控制台,但不包括调试权限所需的信息:

Is there any way to see the specific collection / rule that is failing in Firestore? I've looked in firestore-debug.log (running on localhost) as well as in the Firebase UI. Firestore logs the error to the console, but does not include the information I need to debug the permissions:

推荐答案

Firebase故意不泄露有关失败规则的信息,因为它会为恶意用户提供您不希望他们拥有的信息.

Firebase intentionally does not disclose information about what rule is failing, as it would give malicious users information you don't want them to have.

通常可以在Firebase控制台的仿真器中获得最佳信息,该信息可以告诉您哪些特定规则失败了.

The best information is typically available in the emulator in the Firebase console, which tells you what specific rule has failed.

这篇关于Firestore规则>确定哪个收集/规则失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆