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

Experimental Sandbox Won't Load

1732029337

Edited 1732029375
When I try to load the API Sandbox in my Jumpgate game it gives me this error: Error: Sheet worker error: Cannot access 'AttackIntegrant' before initialization ReferenceError: Cannot access 'AttackIntegrant' before initialization at eval (eval at self.onmessage (eval at toFunction (/home/node/d20-api-server/node_modules/tiny-worker/lib/worker.js:11:2)), <anonymous>:57173:31) at self.onmessage (eval at toFunction (/home/node/d20-api-server/node_modules/tiny-worker/lib/worker.js:11:2), <anonymous>:9:25) at process.<anonymous> (/home/node/d20-api-server/node_modules/tiny-worker/lib/worker.js:65:55) at process.emit (node:events:517:28) at emit (node:internal/child_process:944:14) at process.processTicksAndRejections (node:internal/process/task_queues:83:21) Switching to the Default Sandbox fixes the problem, but then TokenMod no longer works. Switching back to Experimental or restarting the sandbox does not fix the problem. I only have TokenMod enabled, but I tried disabling it and trying with just another script and it still gave the same error, so is there some problem on roll20's end? I don't know what else I could be missing.
1732083301
The Aaron
Roll20 Production Team
API Scripter
That appears to be an issue with the 2024 sheet integration with the API server. The sheet devs will need to fix that I'm afraid.  With the default API server, what do you mean regarding TokenMod not working?
Well, with the knowledge that it's a problem on the 2024 sheet's end, it may be the cause there as well. I have two Character Macros set up on a character, and they work fine from that "Character Macros" page using the Test Macro buttons, but despite them being toggled as "Show on token action", when I try to use them from the pop-up thing when the token is selected, they give me two different errors despite them both just selecting a side for the token and changing its size. One error is "Unable to find sheet action or character macro with the name '[name of the one macro]'." and the other is just "Character not found."
1733091719
The Aaron
Roll20 Production Team
API Scripter
Can you post the contents of those Character Macros so I can duplicate?
I got this same error as op 'AttackIntegrant' before initialization ReferenceError: Cannot access 'AttackIntegrant' before initialization which lead me into a down spiral of removing code part by part, and even when I reduced to a simple test msg like this: on("chat:message", function(msg) { if (msg.type === "api" && msg.content === ("!anything")) { sendChat("System", "Msg"); } }); it will still give the reference error with the sheet worker error.
The Aaron said: Can you post the contents of those Character Macros so I can duplicate? Ah, sorry for the delay - I didn't think I was getting another reply haha These are the two macros: !token-mod --set currentside|2 scale|2u !token-mod --set currentside|1 scale|.5u Considering they're nearly identical it's very confusing why they'd give two different errors.