Skip to content

Persistent Firestore permission-denied error in Run/Test Mode #6396

@montblancds

Description

@montblancds

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

When running the app in Test Mode or Run Mode, any page that performs a Firestore query on page load fails with a "Run mode-only notification: Firestore Security Rules Error: Missing or insufficient permissions." This happens even though the Firestore rules, IAM permissions, and app-side query filters have been meticulously verified and are correct. The app is unusable in test environments.

Expected Behavior

The app should execute the Firestore queries successfully in Run/Test Mode, respecting the deployed security rules without showing a permission error, just as it would in a real deployed application.

Steps to Reproduce

  1. Run the app in Run Mode or Test Mode.
  2. Log in with any valid user.
  3. Navigate to the page that tries to load data from Firestore (e.g., the Hospital Information page).
  4. Observe the "Missing or insufficient permissions" error notification.

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

ss

Visual documentation

Image

Environment

- **FlutterFlow version:** Latest version
- **Platform:** Web Browser
- **Browser name and version:** Google Chrome (Latest version)
- **Operating system and version affected:** All

Additional Information

You can see the exhaustive debugging process we followed in this Google AI chat log: [https://g.co/gemini/share/d6e4df208eab]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions