Hello All, I am working to import a character for a starfinder game I made in Hephaistos. They provide instructions here . I am experiencing my script erroring out when I go into a game and try to import. The error Roll20 gives my code is: 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 Mod Library, you might find help in the Community API Forum. For reference, the error message generated was: SyntaxError: Unexpected token { in JSON at position 1
SyntaxError: Unexpected token { in JSON at position 1
at JSON.parse (<anonymous>)
at apiscript.js:2030:41
at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:65:16)
at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:70:8)
at /home/node/d20-api-server/api.js:1762: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) SyntaxError: Unexpected token { in JSON at position 1 at JSON.parse (<anonymous>) at apiscript.js:2030:41 at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:70:8) at /home/node/d20-api-server/api.js:1762: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 Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425) I am sorta out of my element here and not sure what needs to be corrected on the original source code OR is this refrence the command I am putting in once I am in a game. The installation of the script is successful and only becomes disabled once I boot up a game and run the command in the chat window to import the JSON data. Here is my Character Sheet on Hephaistos: <a href="https://hephaistos.azurewebsites.net/character/165323049" rel="nofollow">https://hephaistos.azurewebsites.net/character/165323049</a> You should be able to access the JSON data that I am trying to add into the command inside of chat. Any help anyone can provide would be great. Super grateful for any advice. Cheers!