Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Error with API

1536309043

Edited 1536352004
Been seeing this error in the API Sandbox. "Starting webworker script..." "Loading 437 translation strings to worker..." "SyntaxError: Unexpected token ..." "SyntaxError: Unexpected token ...\n    at eval (<anonymous>)\n    at messageHandler (evalmachine.<anonymous>:284:6)\n    at process.<anonymous> (/home/node/d20-api-server/node_modules/tiny-worker/lib/worker.js:60:55)\n    at emitTwo (events.js:106:13)\n    at process.emit (events.js:194:7)\n    at process.nextTick (internal/child_process.js:766:12)\n    at _combinedTickCallback (internal/process/next_tick.js:73:7)\n    at process._tickCallback (internal/process/next_tick.js:104:9)" If i disable all scripts of course I  no longer see this and the api shuts down due to no scripts loaded. Doesn't seem to matter which script I turn on, as soon as i do this error returns, any ideas  on how to troubleshoot it?
1536321573
The Aaron
Pro
API Scripter
That might actually be an issue in the character sheet you have try putting only this script in: log('api starting'); If you still get the error, it’s in the character sheet. 
1536339898

Edited 1536351941
Thanks Aaron, It seems the issue is with the character sheet. Using the Starfinder by Roll20 Offical sheet. Interesting that log command didn't out put anything I could see. Below is the output: Spinning up new sandbox... "Starting webworker script..." "Loading 437 translation strings to worker..." "It's A Trap!: Registered TrapTheme - default." "api starting" " Initialized Welcome Package " "-- True Page Copy v1.0 -- [Mon Apr 03 2017 18:32:50 GMT+0000 (UTC)]" "-=> Torch v0.8.11 <=- [Thu Mar 30 2017 10:50:46 GMT+0000 (UTC)]" "Map Change Started" "Blocked Players" [] "Maps Constructed" "Map Change Ready" "It's A Trap!: Registered TrapTheme - Starfinder Generic." "-=> TokenMod v0.8.40 <=- [Tue Jul 17 2018 01:03:56 GMT+0000 (UTC)]" "-=> TokenLock v0.2.6 <=- [Thu Mar 30 2017 10:45:00 GMT+0000 (UTC)]" "--- Initialized Carry Tokens ---" "→→→ Initialized Marching Order →→→" "StatusInfo Ready! Command: !condition" "-=> GroupInitiative v0.9.28 <=- [Thu Jan 11 2018 14:49:14 GMT+0000 (UTC)]" "--- Initialized Areas Of Effect ---" "CombatTracker Ready! Command: !ct" "GMSheet v0.2.0 online. Select one or more party members, then use `!gmsheet -h`" "SyntaxError: Unexpected token ..." "SyntaxError: Unexpected token ...\n at eval (<anonymous>)\n at messageHandler (evalmachine.<anonymous>:284:6)\n at process.<anonymous> (/home/node/d20-api-server/node_modules/tiny-worker/lib/worker.js:60:55)\n at emitTwo (events.js:106:13)\n at process.emit (events.js:194:7)\n at process.nextTick (internal/child_process.js:766:12)\n at _combinedTickCallback (internal/process/next_tick.js:73:7)\n at process._tickCallback (internal/process/next_tick.js:104:9)" "☒☠☒ Initialized It's A Trap! using theme 'Starfinder Generic' ☒☠☒" If i disable the sheet and set to none the error goes away.  I have deleted all charactersheets.  Perhaps this is a new bug with the sheet ?
Confirmed I created a new game with same sheet added a script and getting the same error I will post in character sheet official thread.
1536352059
The Aaron
Pro
API Scripter
The output from that script is on line 5 in the block above.  I'm talking with the sheet author about it, they should get a patch out soon.
The Aaron said: The output from that script is on line 5 in the block above.  I'm talking with the sheet author about it, they should get a patch out soon. Thanks Aaron I see Scott C replied in the official Starfinder sheet thread thanks for the help !!
1536379657
The Aaron
Pro
API Scripter
no worries!