Hi! Occasional I get API errors, most of the time they must originate from where I just was doing changes in the code. But sometimes this could be based on some event listener or some script updates which I just didn't notice. Regardless of the exact reason, is there any way to "understand" the error messages in order to track down the error? Of course, I know how to use the log-command to set check points, and also that I can temporarily disable scripts,but this is not always helpful. In my case, for example, I suspect one of the event listener. But my game ran for an hour without any problem, only then this error occured:
Your scripts are currently disabled due to an error that was
detected. Please make appropriate changes to your scripts and click the
"Save Script" button and we'll attempt to start running them again. More info...
For reference, the error message generated was: TypeError: Cannot read property '1' of null
TypeError: Cannot read property '1' of null
at apiscript.js:18892:44
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:400