
Hi. I recently merged an update into my ImportHS6e script, located here: <a href="https://github.com/Roll20/roll20-api-scripts/blob/master/ImportHS6e/1.03/Import_HS6e_Roll20.js" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/blob/master/ImportHS6e/1.03/Import_HS6e_Roll20.js</a> If I use the one click version of this in my sandbox and attempt to import characters, I get this error: For reference, the error message generated was: Error: Firebase.set failed: First argument contains NaN in property 'current'
Error: Firebase.set failed: First argument contains NaN in property 'current'
at Ba (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:9:186)
at Ba (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:10:207)
at Aa (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:8:462)
at J.set (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:146:98)
at createObj (/home/node/d20-api-server/api.js:2818:26)
at createOrSetAttr (apiscript.js:1154:14)
at createSimplePower (apiscript.js:1909:5)
at apiscript.js:2243:9
at /home/node/d20-api-server/api.js:857:7
at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560
However, if I go to github and copy the js, name it the same and run it, it works perfectly. I changed nothing in the campaign other than deleting and manually importing this script from GIT. Can anyone give me a hint how to fix? The specific error is referencing the module at line 134 and as you can see I am already checking for NaN conditions on number fields. I might be able to code around this eventually, but testing will be long and complex since one click only updates once a week. - E