You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const getSkillRecords=async (skill, skillParameters, country)=>{
var records={};
//NOT WORKSS
try{
switch(skill){
case 0: //FAST TYPING SKILL
//get world records
const totTimeWR=await getDocs(
query(collection(db,"games"),where("numWords","==",skillParameters[0]),where("numChars","==",skillParameters[1]),
where("skill","==",skills[0].title),orderBy("totTime",limit(1)))
); //line where the error occurs
.....
This is an error which sometimes come and sometimes not. I noted that if I delete manually the "games" collection, the error disappear. When I put some stuff (from 3 docs on) on that collection, the error appears again.
I do not know how to fix it; if anyone can help me I would be happy!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
OPERATION SYSTEM
Windows 10
BROWSER VERSION
Chrome 127
FIREBASE SDK VERSION
10.13.0
Hi everyone, I am using firebase js to manage the auth and a db for a web app.
In a certain page of my web app, I have occured this error:
[2024-08-23T15:59:01.359Z] @firebase/firestore: Firestore (10.13.0): FIRESTORE (10.13.0) INTERNAL ASSERTION FAILED: Unexpected state
Firestore (10.13.0): INTERNAL UNHANDLED ERROR: Error: FIRESTORE (10.13.0) INTERNAL ASSERTION FAILED: Unexpected state
at fail (http://127.0.0.1:5173/node_modules/.vite/deps/firebase_firestore.js?v=2acc7830:2640:32)
at __PRIVATE_compareDocs (http://127.0.0.1:5173/node_modules/.vite/deps/firebase_firestore.js?v=2acc7830:5736:14)
at http://127.0.0.1:5173/node_modules/.vite/deps/firebase_firestore.js?v=2acc7830:5718:18
at http://127.0.0.1:5173/node_modules/.vite/deps/firebase_firestore.js?v=2acc7830:13146:37
at _LLRBNode.insert (http://127.0.0.1:5173/node_modules/.vite/deps/firebase_firestore.js?v=2acc7830:4254:15)
at _SortedMap.insert (http://127.0.0.1:5173/node_modules/.vite/deps/firebase_firestore.js?v=2acc7830:4096:54)
at _DocumentSet.add (http://127.0.0.1:5173/node_modules/.vite/deps/firebase_firestore.js?v=2acc7830:13188:60)
at http://127.0.0.1:5173/node_modules/.vite/deps/firebase_firestore.js?v=2acc7830:13623:24
at _LLRBNode.inorderTraversal (http://127.0.0.1:5173/node_modules/.vite/deps/firebase_firestore.js?v=2acc7830:4230:45)
at _SortedMap.inorderTraversal (http://127.0.0.1:5173/node_modules/.vite/deps/firebase_firestore.js?v=2acc7830:4146:22)
This is the code where the error occurs:
This is an error which sometimes come and sometimes not. I noted that if I delete manually the "games" collection, the error disappear. When I put some stuff (from 3 docs on) on that collection, the error appears again.
I do not know how to fix it; if anyone can help me I would be happy!
Beta Was this translation helpful? Give feedback.
All reactions