Skip to content

Error occurs when receiving flutter firestore data #1259

Discussion options

You must be logged in to vote

Hey @CodeKinggggggg, the error message you're encountering indicates a permission issue with Firestore. In your Rowy configuration, you have defined access controls for the "product" collection, but it seems that the rules are not allowing read access to non-logged-in users.

To address this issue, you can modify your Firestore rules to allow read access to the "product" collection even when the user is not logged in. Here's an updated version of your Firestore rules with the necessary changes:

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    // Allow read access to the "product" collection for non-logged-in users
    match /product/{document=**} {

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by BeeBombshell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants