Hello! I am trying to make my script more robust and now I encountered a strange error. For reference, the error message generated was: ReferenceError: console is not defined
at apiscript.js:7957:6
at checkFinishedOps (eval at <anonymous> (/home/node/d20-api-server/api.js:109:36), <anonymous>:758:7)
at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:109:36), <anonymous>:838:8)
at null._onTimeout (/home/node/d20-api-server/node_modules/underscore/underscore.js:768:19)
at Timer.listOnTimeout (timers.js:92:15) This error usually occurs when someone uses console.log() like in the Sheet Workers instead of just log() like in the API. Now the strange thing: I don't use the keyword "console" anywhere (which is easily testable by simply searching for the string). I am aware that the script is not very robust yet and I really don't wan't you guys to do the debug work for me, but just as with the missing error message in the last thread I want to help to find those (minor) bugs as it makes debugging for us way easier. I believe that roll20 somewhere tries to call console.log() instead of log() as I am not using the keyword myself. Campaign 647721 Steps to reproduce: Open character "Basismensch" and go to the character sheet Go to main tab "Magie", go to subtab "Alchemy" Click on some of the buttons under the long list of "Zauber" and enter a value of 2 or 3 in the popup. This just ensures that the script will create entries under "Präparate" for you. Once an entry under "Präparate" was created click like crazy on the last button of the entry under "total". The script engine will crash with the above error.