
So had a session tonight, everything was going great and randomly the Combat Tracker API stopped working. When it did, all of my pre-built initiative MACROs and even the D&D 5E character sheet was unable to roll initiative and/or add it to the turn tracker.
Any thoughts or help would be appreciated. (note: I checked another one of my campaigns with similar API scripts and the combat tracker and character sheet were working just fine. The MACROs I used as a backup until I found the Combat Tracker API was /w gm %{selected|npc_init} for NPC Initiative which I enabled as token actions and &{template:npcaction} {{rname=@{selected|character_name}}} {{name=Initiative}{{description=@{selected|character_name} prepares for battle! [[1d20+@{selected|initiative_bonus}&{tracker}]]}} for player initiative.
This is the API error I received...
"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 null
TypeError: Cannot read property 'id' of null
at apiscript.js:916:21
at Array.forEach (<anonymous>)
at checkMarkerturn (apiscript.js:915:19)
at getOrCreateMarker (apiscript.js:883:9)
at removeMarker (apiscript.js:595:9)
at stopCombat (apiscript.js:577:9)
at handeIniativePageChange (apiscript.js:1331:13)
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:1048:14)