简体   繁体   中英

Firestore error 'Updating a non-existent query'

Sorry for my poor English.

When executing code like the following, an error like the image appears.

@firebase/firestore: - "Firestore(5.5.0): FIRESTORE(5.5.0) INTERNAL ASSERTION FAILED: Updating a non-existent query"

@firebase/firestore: - "Firestore(5.5.0): INTERNAL UNHANDLED ERROR: "

Unhandled Promise Rejection: Error: FIRESTORE(5.5.0) INTERNAL ASSERTION FAILED: Updating a non-exixtent query

Error: FIRESTORE(5.5.0) INTERNAL ASSERTION FAILED: Updating a non-existent query

firestore_error

const db = firebase.firestore();
const dammyRef = db.collection('dammy');

dammyRef.where('num', '>=', 18).where('num', '<', 30).get()
  .then((querySnapshot) => {
    querySnapshot.forEach((doc) => {
      console.log(doc.data());
    })
  });

However, this error occurs only when using iPhone's Safari or Chrome. There is no error in Chrome on the PC version.

The version of Firebase, "firebase": "^ 5.5.0",

Please tell me the reason why this error occurs.

Thank you.

For me, this error occurred when I had an invalid data type as the third parameter of the Firestore 'where' query. Check your data type and make sure the value matches what is in the database.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM