Skip to content

cloud_firestore/unavailable #7086

@mirkoastolfi-stack

Description

@mirkoastolfi-stack

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

After Auth Create Account successfully creates the user in Firebase Authentication, the Firestore client goes into offline mode and never recovers. Error: [cloud_firestore/unavailable] Failed to get document because the client is offline.
This happens on every platform tested: iOS Simulator, iPhone device, Chrome (normal and incognito), Web Run. The issue persists across different networks (home WiFi, iPhone hotspot, Android hotspot) and with VPN completely disabled.
What works:

Firebase Auth Create Account: users are successfully created in Authentication
Direct HTTPS test to Firestore endpoints via curl: returns HTTP 200/404 correctly (firestore.googleapis.com reachable, 0% packet loss)
Backend writes to Firestore from Make.com: work normally (so Firestore project itself is fine)
Cloud Functions (ffPrivateApiCall) have been hitting DEADLINE_EXCEEDED during the failed signups

What doesn't work:

Firestore reads/writes from the FlutterFlow client SDK on any platform
maybeCreateUser in package:vantixy/backend/backend.dart:315:22 fails consistently

Project: Vantixy (Firebase project ID: vantixy-22252)
Steps to reproduce:

User signs up from Register page with Auth Create Account action (Create User Document toggle ON, collection users)
User record is created in Firebase Authentication ✅
Firestore client throws cloud_firestore/unavailable: Failed to get document because the client is offline
Navigate to EditProfile does not execute
No document is created in Firestore users collection

Already tried:

Regenerate Config Files from FlutterFlow Firebase integration
DNS flush, DNS change to 8.8.8.8/1.1.1.1
Clear Chrome site data, disable extensions
VPN fully disabled, verified no residual filters
App Check is NOT enforced (all APIs "Not enforced")
Firestore rules are open: allow read, write: if request.auth != null;
Database is (default), correct region

Please help investigate why the Firestore client is reporting offline despite network connectivity being fine and project configuration looking correct.

Image

Expected Behavior

Scrivi questo:

Expected behavior:
After clicking "Inizia la prova gratuita" on the Register page:

Firebase Auth creates the user account
FlutterFlow automatically creates the user document in Firestore users collection (with Create User Document toggle ON)
User is navigated to the EditProfile page
User fills in profile fields and clicks Save
The users document is updated with the entered data
User is navigated to HomePage

Steps to Reproduce

Open the app (tested on Chrome Web Run, iOS Simulator, iPhone physical device — same result on all)
Navigate to the Register page
Enter a new email and password (email not previously registered)
Click the "Inizia la prova gratuita per 7 giorni" button
Observe: the button shows a loading spinner that never completes
Check Firebase Console → Authentication: the user has been successfully created
Check Firebase Console → Firestore Database → users collection: no document has been created for the new user
Open browser DevTools → Console: see error [cloud_firestore/unavailable] Failed to get document because the client is offline (errors.dart:307)
The app never navigates to EditProfile

Reproducible from Blank

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

Bug Report Code (Required)

ITFTzfLlvM9NruUF+KX+acBKhSg4M0MfWLsr0utuGA0hfeuoB4YMYMzSQFtLYteZTWN+H2CYkj8Hw+DyuOOWJPJfZU6tQN1f/pRXQQyVfF2XMqaJCbu8e3xAL+NNCnK41qSS3BF4WfpYWUIW11+MH/CdG3qCf9qOYwx5e6fDbOY=

Visual documentation

Image

Environment

- FlutterFlow version: Mobile 1.0.0
- Platform: All (Web, iOS Simulator, iOS Device)
- Browser name and version: Chrome 147.0.7727.116 (Build ufficiale) (arm64)
- Operating system and version affected: macOS 26.4.1

Additional Information

Also reproducible on iOS Simulator and iPhone physical device — same cloud_firestore/unavailable error.

Metadata

Metadata

Assignees

Labels

status: can't reproduceFollowing the reported steps did not reproduce the bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions