Skip to content

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

@sissidesziles

Description

@sissidesziles

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions