
Hi all! My APIs used to all cooperate with each other but recently I have been having to constantly restart my sandbox multiple times when trying to play now. I don't really know what happened and would be grateful for any insight as to how to fix it. Thank you!
Here is the error:
For reference, the error message generated was: TypeError: Cannot read properties of undefined (reading 'get')
TypeError: Cannot read properties of undefined (reading 'get')
at handleToken (apiscript.js:5411:40)
at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:181:1), <anonymous>:65:16)
at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:181:1), <anonymous>:70:8)
at TrackedObj.set (/home/node/d20-api-server/api.js:1168:16)
at updateLocalCache (/home/node/d20-api-server/api.js:1509:18)
at /home/node/d20-api-server/api.js:1710:11
at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560
at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147)
at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546)
at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489)
And here are the scripts I'm using:
Let me know if you need any additional details and I will do my best, I'm not proficient in code jargarn.