Skip to content

FirebaseFirestoreException: Failed to get document from cache. (However, this document may exist on the server. Run again without setting source to CACHE to attempt to retrieve the document from the server.) #173

@vlonjat-gashi

Description

@vlonjat-gashi

Environment

  • Android Studio version: 3.2.1
  • Firebase Component: Firestore
  • Component version: 17.1.4

Steps to reproduce:

When fetching from DocumentReference with Source.CACHE and the object doesn't exist in cache, Firestore SDK throws a FirebaseFirestoreException. But would it make more sense to return a null object since object not existing in cache is a valid scenario?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions