Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Need help with error.

February 02 (2 months ago)

Edited February 02 (2 months ago)

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.

February 02 (2 months ago)
The Aaron
Roll20 Production Team
API Scripter

Hmm. It's hard to guess seat that issue might be. If it happens constantly, you could try to figure out what script it is by process of elimination. Try disabling the scripts one at a time and see if you can get the error. If you can't, the last script you disabled is the likely culprit.