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

TOKEN FATE ON-CLICK [BROKEN]

Hello all,  I was getting this error message for my APIs For reference, the error message generated was:  ReferenceError: msg is not defined ReferenceError: msg is not defined at handleMessages (apiscript.js:26236:22) at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:154:1), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:154:1), <anonymous>:70:8) at /home/node/d20-api-server/api.js:1648:12 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) at Zd.Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425) at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:111:461 I worked backwards disabling my APIs until I found the script that was causing this error.   I traced it back to TOKEN FATE One-Click
Tye said: Hello all,  I was getting this error message for my APIs For reference, the error message generated was:  ReferenceError: msg is not defined ReferenceError: msg is not defined at handleMessages (apiscript.js:26236:22) at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:154:1), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:154:1), <anonymous>:70:8) at /home/node/d20-api-server/api.js:1648:12 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) at Zd.Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425) at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:111:461 I worked backwards disabling my APIs until I found the script that was causing this error.   I traced it back to TOKEN FATE One-Click Getting the same error the multiworld calendar script :(
1588184125
The Aaron
Roll20 Production Team
API Scripter
Rats, that's my fault.  Change line 58: if('api' !== msg.type ) { to this: if('api' !== msg_orig.type ) { I'll submit a patch to the repo.
1588184383
The Aaron
Roll20 Production Team
API Scripter
Pull request to fix this:&nbsp; <a href="https://github.com/Roll20/roll20-api-scripts/pull/952" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/pull/952</a> Anthony V., can you link that other script, I'll go see if I can spot the issue there. BTW, you can switch to the 1.1.0 version of the script to get the same functionality but without the bug.&nbsp; My changes were to fix an issue with the script breaking inlineroll parsing in other scripts, so there isn't a behavioral difference between 1.1.0 and 1.1.1