Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to write to firestore : Unhandled Exception: Bad state: cannot get a field on a DocumentSnapshotPlatform which does not exist #1

Open
sissidesziles opened this issue Aug 24, 2023 · 0 comments

Comments

@sissidesziles
Copy link

Hello,

I am trying to reproduce your app to learning purpose and i am having trouble to write to Firestore.

E/flutter (23354): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Bad state: cannot get a field on a DocumentSnapshotPlatform which does not exist
E/flutter (23354): #0 DocumentSnapshotPlatform.get (package:cloud_firestore_platform_interface/src/platform_interface/platform_interface_document_snapshot.dart:77:7)
E/flutter (23354): #1 _JsonDocumentSnapshot.get (package:cloud_firestore/src/document_snapshot.dart:92:48)
E/flutter (23354): #2 _JsonDocumentSnapshot.[] (package:cloud_firestore/src/document_snapshot.dart:96:40)
E/flutter (23354): #3 _FeedPageState.loadfeed (package:omri/pages/feed.dart:270:35)
E/flutter (23354):
E/flutter (23354):

I guess it's looking for fields that do not exist. Is there any data model i can reproduce? I reproduced data model from models but manually it does not seem to work.

Any help?

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant