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

Just started using APIs, got "Your scripts are currently disabled due to an error that was detected. " error... Not sure what to do

My current APIS: Script Library G TokenMod G Torch G Vector Math G MatrixMath G Path Math G Token Collisions G CombatTracker G DeathTracker G 5E Resting in Style G MapChange G StatusInfo spiritualweapon.js TurnMarker1 G GroupCheck G Base64 packmacros.js G Bump New Script Roll20 API Script Library The Script Library has a wide array of pre-written scripts to help enhance your game. (Change the drop-down above. If you'd like to add a script to your game, click the Add Script button below.) API Output Console Your scripts are currently disabled due to an error that was detected. Please make appropriate changes to your script's code and click the "Save Script" button. We will then attempt to start running the scripts again. More info... If this script was installed from the Script Library, you might find help in the Community API Forum. For reference, the error message generated was: TypeError: Cannot read property 'id' of undefined TypeError: Cannot read property 'id' of undefined at handleGraphicMovement (apiscript.js:7857:28) 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 TrackedObj.set (/home/node/d20-api-server/api.js:1047:14) at updateLocalCache (/home/node/d20-api-server/api.js:1345:18) at /home/node/d20-api-server/api.js:1529: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) Can anyone please help or direct me to help? Thank you in advance.
1603686684
GiGs
Pro
Sheet Author
API Scripter
One of the scripts you have installed is buggy and not handling errors properly. It looks like CombatTracker is the culprit, since the error occurs at handleGraphicMovement, and with a search of the scripts, it looks like that is the only one that contains that function. So if you disable that script, the error should go away.
GiGs said: One of the scripts you have installed is buggy and not handling errors properly. It looks like CombatTracker is the culprit, since the error occurs at handleGraphicMovement, and with a search of the scripts, it looks like that is the only one that contains that function. So if you disable that script, the error should go away. Thank you. That is is unfortunate since I like that one... But we shall see if that helps. I will admit it was working great during testing in the week, but the live game on Saturday it was very buggy.
sean c. said: GiGs said: One of the scripts you have installed is buggy and not handling errors properly. It looks like CombatTracker is the culprit, since the error occurs at handleGraphicMovement, and with a search of the scripts, it looks like that is the only one that contains that function. So if you disable that script, the error should go away. Thank you. That is is unfortunate since I like that one... But we shall see if that helps. I will admit it was working great during testing in the week, but the live game on Saturday it was very buggy. Combat Tracker is outdated. It got replaced by CombatMaster. It's in the OnClick, but the Version there might not be updated. There should be a link to the Github page somewhere around there, that contains the newest version.
In my experience, sometimes a simple restart will get things working again. I have been using the outdated CombatTracker for some time now without problems.
Michael d. said: In my experience, sometimes a simple restart will get things working again. I have been using the outdated CombatTracker for some time now without problems. Yeah, but I was actually having problems during the game. So I think it will be more than just a restart. I need to see if there has been any updates on it.
Or look into Sven's suggestion... Thanks guys
1604254973
Victor B.
Pro
Sheet Author
API Scripter
Don't use CombatMaster from Roll20 one click.&nbsp; There's an issue in Roll20 Github.&nbsp; Roll20 is aware of the issue but hasn't committed to a fix date.&nbsp; Go here instead and use this.&nbsp;&nbsp;<a href="https://github.com/vicberg/CombatMaster" rel="nofollow">https://github.com/vicberg/CombatMaster</a>
Victor B. said: Don't use CombatMaster from Roll20 one click.&nbsp; There's an issue in Roll20 Github.&nbsp; Roll20 is aware of the issue but hasn't committed to a fix date.&nbsp; Go here instead and use this.&nbsp;&nbsp; <a href="https://github.com/vicberg/CombatMaster" rel="nofollow">https://github.com/vicberg/CombatMaster</a> Thank you.