0
我可以在JavaScript 檢索數據:players.child(key).exists();
不過的NodeJS返回數據的這種交戰檢查是否有無效鍵的JavaScript火力地堡
FIREBASE WARNING: Exception was thrown by user callback. Error: Firebase.child failed: First
argument was an invalid path: "". Paths must be non-empty strings and can't contain ".", "#",
"$", "[", or "]"
at Error (<anonymous>)
at gg (/var/node/node_modules/firebase/lib/firebase-node.js:136:59)
at T.u (/var/node/node_modules/firebase/lib/firebase-node.js:246:216)
at /var/node/server.js:24:19
at Object.manager.shots.objIntegrity (/var/node/server.js:26:7)
at /var/node/server.js:39:33
at /var/node/node_modules/firebase/lib/firebase-node.js:46:642
at Bb (/var/node/node_modules/firebase/lib/firebase-node.js:43:165)
at xb (/var/node/node_modules/firebase/lib/firebase-node.js:22:216)
at yb (/var/node/node_modules/firebase/lib/firebase-node.js:21:1260)
/var/node/node_modules/firebase/lib/firebase-node.js:43
ion(){N("Exception was thrown by user callback.",b.stack||"");throw b;},Math.f
^
Error: Firebase.child failed: First argument was an invalid path: "". Paths must be non-empty
strings and can't contain ".", "#", "$", "[", or "]"
at Error (<anonymous>)
at gg (/var/node/node_modules/firebase/lib/firebase-node.js:136:59)
at T.u (/var/node/node_modules/firebase/lib/firebase-node.js:246:216)
at /var/node/server.js:24:19
at Object.manager.shots.objIntegrity (/var/node/server.js:26:7)
at /var/node/server.js:39:33
at /var/node/node_modules/firebase/lib/firebase-node.js:46:642
at Bb (/var/node/node_modules/firebase/lib/firebase-node.js:43:165)
at xb (/var/node/node_modules/firebase/lib/firebase-node.js:22:216)
at yb (/var/node/node_modules/firebase/lib/firebase-node.js:21:1260)
我的結構是
{
players{
-K5MOHoOKvxL8_tcRfmc{
et...
}
}
}
感謝你的幫助
Vinc